Corrected redirect bug - fixed request_uri position during checks.
This commit is contained in:
parent
fe09cd7496
commit
08f540057f
@ -1,3 +1,3 @@
|
||||
RewriteEngine on
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^(.*)$ index.php?query=$1 [L,QSA]
|
||||
RewriteRule ^(.*)$ index.php?URI=$1 [L,QSA]
|
@ -2,9 +2,9 @@
|
||||
session_start ( );
|
||||
require_once ( 'functions.php' );
|
||||
$GLOBALS [ 'config' ] = load_config ( );
|
||||
$GLOBALS [ 'request_uri' ] = split_uri_array ( );
|
||||
if ( isset ( $request [ 0 ] ) && $request [ 0 ] != "" ) {
|
||||
switch ( $request [ 0 ] ) {
|
||||
$GLOBALS [ 'request_uri' ] = explode ( "/", $_GET [ 'URI' ] );
|
||||
if ( isset ( $GLOBALS [ 'request_uri' ] [ 0 ] ) && $GLOBALS [ 'request_uri' ] [ 0 ] != "" ) {
|
||||
switch ( $GLOBALS [ 'request_uri' ] [ 0 ] ) {
|
||||
case "go":
|
||||
include ( 'lib/php/go.php' );
|
||||
break;
|
||||
|
@ -3,7 +3,7 @@
|
||||
header ( "Location: " . substr ( $_SERVER [ 'SCRIPT_NAME' ], 0, -10 ) . "/insert" );
|
||||
exit;
|
||||
}
|
||||
if ( isset ( $request [ 1 ] ) && $request [ 1 ] == "forgot" ) {
|
||||
if ( isset ( $GLOBALS [ 'request_uri' ] [ 1 ] ) && $GLOBALS [ 'request_uri' ] [ 1 ] == "forgot" ) {
|
||||
include ( $config [ 'installation_path' ] . '/lib/php/forgot.php' );
|
||||
exit;
|
||||
}
|
||||
|
Reference in New Issue
Block a user