From 61ad7c901767fd8637a2bb95fe64b74a67927e31 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Thu, 2 Jan 2003 15:39:36 +0000 Subject: [PATCH] Minor error in redirect url creation git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3249 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index beb4c87b04..1acc321ce6 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -694,8 +694,8 @@ function redirect($url) $server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://'; $server_name = preg_replace('/^\/?(.*?)\/?$/', '\1', trim($board_config['server_name'])); $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) . '/' : '/'; - $script_name = preg_replace('/^\/?(.*?)\/?$/', '/\1', trim($board_config['script_path'])); - $url = preg_replace('/^\/?(.*?\/)?$/', '\1', trim($url)); + $script_name = preg_replace('/^\/?(.*?)\/?$/', '\1', trim($board_config['script_path'])); + $url = preg_replace('/^\/?(.*?)\/?$/', '/\1', trim($url)); // Redirect via an HTML form for PITA webservers if (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')))