forked from extern/egroupware
fix for empty webserver_url (eGW installed in docroot)
This commit is contained in:
parent
16c087b605
commit
ec8bc31682
@ -24,7 +24,16 @@
|
|||||||
}
|
}
|
||||||
$referer = $_POST['submit'] || $_POST['cancel'] ? $_POST['referer'] : $_SERVER['HTTP_REFERER'];
|
$referer = $_POST['submit'] || $_POST['cancel'] ? $_POST['referer'] : $_SERVER['HTTP_REFERER'];
|
||||||
if (!$referer) $referer = $GLOBALS['egw']->link('/admin/index.php');
|
if (!$referer) $referer = $GLOBALS['egw']->link('/admin/index.php');
|
||||||
list(,$show_app) = explode($GLOBALS['egw_info']['server']['webserver_url'],$referer);
|
if ($GLOBALS['egw_info']['server']['webserver_url'])
|
||||||
|
{
|
||||||
|
list(,$show_app) = explode($GLOBALS['egw_info']['server']['webserver_url'],$referer);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$parts = parse_url($referer);
|
||||||
|
$show_app = $parts['path'];
|
||||||
|
unset($parts);
|
||||||
|
}
|
||||||
list(,$show_app) = explode('/',$show_app);
|
list(,$show_app) = explode('/',$show_app);
|
||||||
if (!$show_app) $show_app = 'admin';
|
if (!$show_app) $show_app = 'admin';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user