mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
using common::get_referer()
This commit is contained in:
parent
988b7c1bc5
commit
10ced8ebd5
@ -117,7 +117,7 @@
|
||||
$content = array(
|
||||
'type' => $type,
|
||||
);
|
||||
list(,$referer) = explode($GLOBALS['egw_info']['server']['webserver_url'],$_SERVER['HTTP_REFERER']);
|
||||
$referer = $GLOBALS['egw']->common->get_referer();
|
||||
}
|
||||
$GLOBALS['egw_info']['flags']['app_header'] = $GLOBALS['egw_info']['apps'][$this->appname]['title'].' - '.lang('Custom fields');
|
||||
|
||||
|
@ -48,8 +48,7 @@
|
||||
$referer = $_POST['referer'];
|
||||
if (!$referer)
|
||||
{
|
||||
list(,$referer) = explode($GLOBALS['egw_info']['server']['webserver_url'],$_SERVER['HTTP_REFERER']);
|
||||
if (!$referer) $referer = '/preferences/index.php';
|
||||
$referer = $GLOBALS['egw']->common->get_referer('/preferences/index.php');
|
||||
}
|
||||
//echo '<p align="right">'."referer='$referer'</p>\n";
|
||||
|
||||
|
@ -113,8 +113,7 @@
|
||||
$cats_level = get_var('cats_level',array('GET','POST'));
|
||||
|
||||
// make categories called via sidebox menu of an app, to behave like a part of that app
|
||||
list(,$referer) = explode($GLOBALS['egw_info']['server']['webserver_url'],$_SERVER['HTTP_REFERER']);
|
||||
if (!$referer) $referer = '/preferences/index.php';
|
||||
$referer = $GLOBALS['egw']->common->get_referer('/preferences/index.php');
|
||||
if (!strstr($referer,'menuaction=preferences.uicategories'))
|
||||
{
|
||||
$this->referer = $referer;
|
||||
|
@ -34,8 +34,7 @@
|
||||
function index()
|
||||
{
|
||||
// make preferences called via sidebox menu of an app, to behave like a part of that app
|
||||
list(,$referer) = explode($GLOBALS['egw_info']['server']['webserver_url'],$_SERVER['HTTP_REFERER']);
|
||||
if (!$referer) $referer = '/preferences/index.php';
|
||||
$referer = $GLOBALS['egw']->common->get_referer('/preferences/index.php');
|
||||
if (!preg_match('/(preferences.php|menuaction=preferences.uisettings.index)+/i',$referer))
|
||||
{
|
||||
$this->bo->session_data['referer'] = $referer;
|
||||
|
Loading…
Reference in New Issue
Block a user