mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-01 14:25:27 +02:00
Version 18.13.7
This commit is contained in:
parent
546b3ae469
commit
264f512d73
|
@ -355,10 +355,11 @@ En OpenSWAD:
|
||||||
ps2pdf source.ps destination.pdf
|
ps2pdf source.ps destination.pdf
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 18.13.6 (2018-11-09)"
|
#define Log_PLATFORM_VERSION "SWAD 18.13.7 (2018-11-09)"
|
||||||
#define CSS_FILE "swad18.4.css"
|
#define CSS_FILE "swad18.4.css"
|
||||||
#define JS_FILE "swad17.17.1.js"
|
#define JS_FILE "swad17.17.1.js"
|
||||||
/*
|
/*
|
||||||
|
Version 18.13.7: Nov 09, 2018 Fixed bug in file browser links. (236552 lines)
|
||||||
Version 18.13.6: Nov 09, 2018 Fixed bug in file browser links, reported by Alberto Prieto Espinosa. (236549 lines)
|
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)
|
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:
|
Copy the following icons to icon public directory:
|
||||||
|
|
|
@ -2645,7 +2645,7 @@ static void Brw_GetParamsPathInTreeAndFileName (void)
|
||||||
Par_GetParToText ("Path",Gbl.FileBrowser.Priv.PathInTreeUntilFilFolLnk,PATH_MAX);
|
Par_GetParToText ("Path",Gbl.FileBrowser.Priv.PathInTreeUntilFilFolLnk,PATH_MAX);
|
||||||
|
|
||||||
/* Check if path contains ".." */
|
/* Check if path contains ".." */
|
||||||
if (strstr (Gbl.FileBrowser.Priv.PathInTreeUntilFilFolLnk,"..")) // ".." is not allowed in the path
|
if (strstr (Gbl.FileBrowser.Priv.PathInTreeUntilFilFolLnk,"..")) // ".." is not allowed in path
|
||||||
Lay_ShowErrorAndExit ("Wrong path.");
|
Lay_ShowErrorAndExit ("Wrong path.");
|
||||||
|
|
||||||
/***** Get the name of the file, folder or link *****/
|
/***** Get the name of the file, folder or link *****/
|
||||||
|
@ -2658,13 +2658,14 @@ static void Brw_GetParamsPathInTreeAndFileName (void)
|
||||||
Gbl.FileBrowser.FilFolLnkName,
|
Gbl.FileBrowser.FilFolLnkName,
|
||||||
NAME_MAX,Str_TO_TEXT,false))
|
NAME_MAX,Str_TO_TEXT,false))
|
||||||
{
|
{
|
||||||
|
Gbl.FileBrowser.FileType = FileType;
|
||||||
|
|
||||||
/* Check if filename contains ".." */
|
/* Check if filename contains ".." */
|
||||||
Brw_GetFileNameToShow (FileType,
|
Brw_GetFileNameToShow (Gbl.FileBrowser.FileType,
|
||||||
Gbl.FileBrowser.FilFolLnkName,
|
Gbl.FileBrowser.FilFolLnkName,
|
||||||
FileNameToShow);
|
FileNameToShow);
|
||||||
if (strstr (FileNameToShow,"..")) // ".." is not allowed in the path
|
if (strstr (FileNameToShow,"..")) // ".." is not allowed in filename
|
||||||
Lay_ShowErrorAndExit ("Wrong path.");
|
Lay_ShowErrorAndExit ("Wrong file name.");
|
||||||
Gbl.FileBrowser.FileType = FileType;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9855,6 +9856,8 @@ void Brw_RecLinkFileBrowser (void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else // Link URL not valid
|
||||||
|
Ale_ShowAlert (Ale_WARNING,Txt_UPLOAD_FILE_Invalid_link);
|
||||||
}
|
}
|
||||||
else // Link URL not valid
|
else // Link URL not valid
|
||||||
Ale_ShowAlert (Ale_WARNING,Txt_UPLOAD_FILE_Invalid_link);
|
Ale_ShowAlert (Ale_WARNING,Txt_UPLOAD_FILE_Invalid_link);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user