User:Skizzerz/Funnel

Index: SpecialFunnel.php

=
====================================================== --- SpecialFunnel.php	(revision 2148) +++ SpecialFunnel.php	(working copy) @@ -29,6 +29,8 @@  parse_str( $_SERVER['QUERY_STRING'], $params ); + if( isset($_REQUEST['action']) ) return true; //don't redirect on action=edit and the like +    if( ( $_SERVER['REQUEST_METHOD'] == 'GET' ) && ( $_SERVER['PHP_SELF'] == '/index.php' ) && ( trim( $params['title'] ) != '' ) && ( $isContent ) ){ $page = $params['title']; @@ -41,7 +43,7 @@ 			$query = '?'. http_build_query( $params ); } -		$url = 'http://'.$_SERVER['SERVER_NAME'].$prefix.$page.$query; +		$url = 'http://'.$_SERVER['SERVER_NAME'].$prefix.$page.urldecode($query); header( "Location: {$url}", true, 301); exit(0);