mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 16:35:38 +00:00
fix possible DoS
This commit is contained in:
parent
8d3077cd34
commit
d68c922152
|
@ -10,6 +10,7 @@
|
|||
- output splash message when removing, editing, adding a category or keyword
|
||||
- extensions cannot be disabled/enabled if configuration file is not writeable
|
||||
- prevent cross site scripting in views/bootstrap/class.DefaultKeywords.php
|
||||
- fix possible DoS in op/op.RemoveLog.php
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Changes in version 5.1.24
|
||||
|
|
|
@ -41,6 +41,7 @@ if (!isset($_POST["lognames"]) || !is_array($_POST["lognames"])) {
|
|||
|
||||
$lognames = $_POST["lognames"];
|
||||
foreach($lognames as $file) {
|
||||
$file = basename($file, '.log').'.log';
|
||||
if(!file_exists($settings->_contentDir.'log/'.$file)) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("unknown_id"));
|
||||
}
|
||||
|
|
|
@ -49,6 +49,7 @@ if(!is_array($_GET["logname"]))
|
|||
else
|
||||
$lognames = $_GET["logname"];
|
||||
foreach($lognames as $file) {
|
||||
$file = basename($file, '.log').'.log';
|
||||
if(!file_exists($settings->_contentDir.'log/'.$file)) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("unknown_id"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user