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

This commit is contained in:
Uwe Steinmann 2021-05-11 21:19:01 +02:00
commit 813587e8c9
2 changed files with 3 additions and 1 deletions

View File

@ -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) {

View File

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