mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 17:53:08 +02:00
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
This commit is contained in:
+1
-4
@@ -36,10 +36,7 @@ if ( isset( $_GET['act'] )
|
||||
// cookie deletion if exists
|
||||
setcookie( 'id', '', 0, cookie_path() );
|
||||
$url = 'category.php';
|
||||
header( 'Request-URI: '.$url );
|
||||
header( 'Content-Location: '.$url );
|
||||
header( 'Location: '.$url );
|
||||
exit();
|
||||
redirect( $url );
|
||||
}
|
||||
//-------------------------------------------------- access authorization check
|
||||
if ( isset( $_GET['cat'] ) ) check_cat_id( $_GET['cat'] );
|
||||
|
||||
Reference in New Issue
Block a user