0
0

Corrected redirect bug - fixed request_uri position during checks.

This commit is contained in:
Bryan Pedini
2019-04-30 12:00:55 +02:00
parent fe09cd7496
commit 08f540057f
3 changed files with 5 additions and 5 deletions

View File

@@ -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;
}