From 56f1b3baed8ebb4566224bfa17fd96766162555c Mon Sep 17 00:00:00 2001 From: ozh Date: Wed, 4 Sep 2013 18:33:48 +0200 Subject: [PATCH] Check REQUEST_URI before actually running tests on it.. duh. --- includes/load-yourls.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/load-yourls.php b/includes/load-yourls.php index bf6a78d47..d4e5936d6 100644 --- a/includes/load-yourls.php +++ b/includes/load-yourls.php @@ -122,6 +122,9 @@ // Check if we are in maintenance mode - if yes, it will die here. yourls_check_maintenance_mode(); + +// Fix REQUEST_URI for IIS +yourls_fix_request_uri(); // If request for an admin page is http:// and SSL is required, redirect if( yourls_is_admin() && yourls_needs_ssl() && !yourls_is_ssl() ) { @@ -134,9 +137,6 @@ } } -// Fix REQUEST_URI for IIS -yourls_fix_request_uri(); - // Create the YOURLS object $ydb that will contain everything we globally need global $ydb;