mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-20 07:25:42 +02:00
Version 18.13.6
This commit is contained in:
parent
1850f12814
commit
546b3ae469
|
@ -355,10 +355,11 @@ En OpenSWAD:
|
|||
ps2pdf source.ps destination.pdf
|
||||
*/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 18.13.5 (2018-11-08)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 18.13.6 (2018-11-09)"
|
||||
#define CSS_FILE "swad18.4.css"
|
||||
#define JS_FILE "swad17.17.1.js"
|
||||
/*
|
||||
Version 18.13.6: Nov 09, 2018 Fixed bug in file browser links, reported by Alberto Prieto Espinosa. (236549 lines)
|
||||
Version 18.13.5: Nov 08, 2018 New file extension allowed, requested by Javier Fernández Baldomero: .gdb (GNU Debugger Script). (236540 lines)
|
||||
Copy the following icons to icon public directory:
|
||||
sudo cp icon/filext16x16/gdb16x16.gif /var/www/html/swad/icon/filext16x16/
|
||||
|
|
|
@ -2637,9 +2637,14 @@ static void Brw_GetParamsPathInTreeAndFileName (void)
|
|||
const char *Ptr;
|
||||
unsigned i;
|
||||
Brw_FileType_t FileType;
|
||||
char FileNameToShow[NAME_MAX + 1];
|
||||
|
||||
/***** Get the path inside the tree (this path does not include the name of the file or folder at the end) *****/
|
||||
/***** Get the path inside the tree
|
||||
(this path does not include
|
||||
the name of the file or folder at the end) *****/
|
||||
Par_GetParToText ("Path",Gbl.FileBrowser.Priv.PathInTreeUntilFilFolLnk,PATH_MAX);
|
||||
|
||||
/* Check if path contains ".." */
|
||||
if (strstr (Gbl.FileBrowser.Priv.PathInTreeUntilFilFolLnk,"..")) // ".." is not allowed in the path
|
||||
Lay_ShowErrorAndExit ("Wrong path.");
|
||||
|
||||
|
@ -2653,7 +2658,11 @@ static void Brw_GetParamsPathInTreeAndFileName (void)
|
|||
Gbl.FileBrowser.FilFolLnkName,
|
||||
NAME_MAX,Str_TO_TEXT,false))
|
||||
{
|
||||
if (strstr (Gbl.FileBrowser.FilFolLnkName,"..")) // ".." is not allowed in the path
|
||||
/* Check if filename contains ".." */
|
||||
Brw_GetFileNameToShow (FileType,
|
||||
Gbl.FileBrowser.FilFolLnkName,
|
||||
FileNameToShow);
|
||||
if (strstr (FileNameToShow,"..")) // ".." is not allowed in the path
|
||||
Lay_ShowErrorAndExit ("Wrong path.");
|
||||
Gbl.FileBrowser.FileType = FileType;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user