aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-04-07 00:06:55 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-04-07 00:06:55 +0200
commit60be4c70a7e2e3b8a31420733f6389a6131b0334 (patch)
tree299b3675b4d0783b92fd45bdc43efd98578402c6 /phpBB/includes/functions.php
parentf0176b53934e78b830b890ef46c1e8e7c233bee4 (diff)
downloadforums-60be4c70a7e2e3b8a31420733f6389a6131b0334.tar
forums-60be4c70a7e2e3b8a31420733f6389a6131b0334.tar.gz
forums-60be4c70a7e2e3b8a31420733f6389a6131b0334.tar.bz2
forums-60be4c70a7e2e3b8a31420733f6389a6131b0334.tar.xz
forums-60be4c70a7e2e3b8a31420733f6389a6131b0334.zip
[ticket/12358] Correctly check and change the redirect url for ajax requests
PHPBB3-12358
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 8c29bc7171..69f7c3f162 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -2437,19 +2437,19 @@ function meta_refresh($time, $url, $disable_cd_check = false)
{
global $template, $refresh_data, $request;
+ $url = redirect($url, true, $disable_cd_check);
if ($request->is_ajax())
{
$refresh_data = array(
'time' => $time,
- 'url' => str_replace('&amp;', '&', $url)
+ 'url' => $url,
);
}
else
{
- $url = redirect($url, true, $disable_cd_check);
+ // For XHTML compatibility we change back & to &amp;
$url = str_replace('&', '&amp;', $url);
- // For XHTML compatibility we change back & to &amp;
$template->assign_vars(array(
'META' => '<meta http-equiv="refresh" content="' . $time . '; url=' . $url . '" />')
);