From c0120b0a1d6d432dda0412a090788f49ebcb6709 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 11 May 2021 21:18:15 +0200 Subject: [PATCH 1/2] do not call get_magic_quotes_gpc() anymore --- inc/inc.Settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/inc.Settings.php b/inc/inc.Settings.php index 2515be2a5..df11ccada 100644 --- a/inc/inc.Settings.php +++ b/inc/inc.Settings.php @@ -47,7 +47,7 @@ if(isset($settings->_maxExecutionTime)) { } } -if (get_magic_quotes_gpc()) { +if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) { $process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST); while (list($key, $val) = each($process)) { foreach ($val as $k => $v) { From d1bd50fa24a859b2db6aed5595128b583fea98e8 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 11 May 2021 21:18:36 +0200 Subject: [PATCH 2/2] support for 5.1.23 --- out/out.Help.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/out/out.Help.php b/out/out.Help.php index 3a6c70816..7de5bd165 100644 --- a/out/out.Help.php +++ b/out/out.Help.php @@ -29,6 +29,7 @@ require_once("inc/inc.Authentication.php"); $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); $view = UI::factory($theme, $tmp[1]); +$accessop = new SeedDMS_AccessOperation($dms, null, $user, $settings); if(isset($_GET['context'])) $context = $_GET['context']; @@ -38,6 +39,7 @@ if($view) { $view->setParam('dms', $dms); $view->setParam('user', $user); $view->setParam('context', $context); + $view->setParam('accessobject', $accessop); $view($_GET); exit; }