aboutsummaryrefslogtreecommitdiffstats
path: root/include/user.inc.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-03-31 20:43:09 +0000
committerz0rglub <z0rglub@piwigo.org>2004-03-31 20:43:09 +0000
commita0033b8b56fdf9489981c52b6edaaeb3ecdb1e7e (patch)
treec2152cd57002a92c6a58752b95a9511bff1ace38 /include/user.inc.php
parentff1e280227a2d7b3359d227dbfe6d1878c4589c3 (diff)
redirections modification : use of a HTML refresh page instead of header PHP
function. The purpose is to avoid redirections failure when extra characters are found in included PHP files. git-svn-id: http://piwigo.org/svn/trunk@405 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/user.inc.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/user.inc.php b/include/user.inc.php
index e4cad9346..a02c50785 100644
--- a/include/user.inc.php
+++ b/include/user.inc.php
@@ -45,10 +45,7 @@ if ( !$conf['authorize_cookies'] and isset( $_COOKIE['id'] ) )
{
setcookie( 'id', '', 0, cookie_path() );
$url = 'category.php';
- header( 'Request-URI: '.$url );
- header( 'Content-Location: '.$url );
- header( 'Location: '.$url );
- exit();
+ redirect( $url );
}
$user['has_cookie'] = false;