From a0033b8b56fdf9489981c52b6edaaeb3ecdb1e7e Mon Sep 17 00:00:00 2001 From: z0rglub Date: Wed, 31 Mar 2004 20:43:09 +0000 Subject: 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 --- search.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'search.php') diff --git a/search.php b/search.php index 85df38202..b0770c0fd 100644 --- a/search.php +++ b/search.php @@ -55,10 +55,7 @@ if ( isset( $_POST['search'] ) ) { $url = 'category.php?cat=search&search='.$search.'&mode='.$_POST['mode']; $url = add_session_id( $url, true ); - header( 'Request-URI: '.$url ); - header( 'Content-Location: '.$url ); - header( 'Location: '.$url ); - exit(); + redirect( $url ); } } //----------------------------------------------------- template initialization -- cgit v1.2.3