aboutsummaryrefslogtreecommitdiffstats
path: root/include/user.inc.php
diff options
context:
space:
mode:
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;