Merge branch 'seeddms-5.1.x' into seeddms-6.0.x

This commit is contained in:
Uwe Steinmann 2022-03-28 08:31:40 +02:00
commit 988dc9deff
5 changed files with 5 additions and 2 deletions

View File

@ -228,6 +228,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

View File

@ -129,7 +129,7 @@ elseif (isset($_GET["arkname"])) { /* {{{ */
$controller->archive();
} /* }}} */
elseif (isset($_GET["logname"])) { /* {{{ */
$filename = basename($_GET["logname"]);
$filename = basename($_GET["logname"], '.log').'.log';
// log download

View File

@ -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"));
}

View File

@ -35,7 +35,7 @@ if (!$accessop->check_view_access($view, $_GET)) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
if (isset($_GET["logname"])) $logname=basename($_GET["logname"]);
if (isset($_GET["logname"])) $logname=basename($_GET["logname"], '.log').'.log';
else $logname=NULL;
if (isset($_GET["mode"])) $mode=$_GET["mode"];

View File

@ -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"));
}