diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2008-06-10 12:55:32 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-06-10 12:55:32 +0000 |
commit | fc8db76da9c9f69642c8ed4203ce9b69c1306cdb (patch) | |
tree | f5b509ccbfcffe5e23dcb3c1cf3cc02e8748b044 | |
parent | d168abdcc9ef4d76f9335a0267994f85ae906ec3 (diff) | |
download | forums-fc8db76da9c9f69642c8ed4203ce9b69c1306cdb.tar forums-fc8db76da9c9f69642c8ed4203ce9b69c1306cdb.tar.gz forums-fc8db76da9c9f69642c8ed4203ce9b69c1306cdb.tar.bz2 forums-fc8db76da9c9f69642c8ed4203ce9b69c1306cdb.tar.xz forums-fc8db76da9c9f69642c8ed4203ce9b69c1306cdb.zip |
added two comments to describe the functions use-case
git-svn-id: file:///svn/phpbb/trunk@8644 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/includes/functions.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index a483871d3a..3ef369aacf 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1745,6 +1745,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) { @@ -1773,6 +1774,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(); |