aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-06-10 12:54:30 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-06-10 12:54:30 +0000
commit26f51cf5b386c20ecfbbed539aa6e4e0cabef377 (patch)
treed98f6b9919c54ad65283e8f32e0f1cb4534f62fa
parent4444e48d2e020f67ec95474e6ace413768b85df3 (diff)
downloadforums-26f51cf5b386c20ecfbbed539aa6e4e0cabef377.tar
forums-26f51cf5b386c20ecfbbed539aa6e4e0cabef377.tar.gz
forums-26f51cf5b386c20ecfbbed539aa6e4e0cabef377.tar.bz2
forums-26f51cf5b386c20ecfbbed539aa6e4e0cabef377.tar.xz
forums-26f51cf5b386c20ecfbbed539aa6e4e0cabef377.zip
added two comments to describe the functions use-case
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8643 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 198004957c..c7026ce44c 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -1801,6 +1801,7 @@ function generate_board_url($without_script_path = false)
/**
* Redirects the user to another page then exits the script nicely
+* This function is intended for urls within the board. It's not meant to redirect to cross-domains.
*/
function redirect($url, $return = false)
{
@@ -1829,6 +1830,7 @@ function redirect($url, $return = false)
}
else if (!empty($url_parts['scheme']) && !empty($url_parts['host']))
{
+ // Attention: only able to redirect within the same domain (yourdomain.com -> www.yourdomain.com will not work)
if ($url_parts['host'] !== $user->host)
{
$url = generate_board_url();