From 3f2d0e6262bb03ba2d79e6f1df8771e130bd5230 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 7 Aug 2014 11:32:27 +0200 Subject: [PATCH] Fixed WCFSetup --- wcfsetup/install/files/lib/system/WCFACP.class.php | 2 +- wcfsetup/install/files/options.inc.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/WCFACP.class.php b/wcfsetup/install/files/lib/system/WCFACP.class.php index 2ab62ee3ba..870b590b8f 100644 --- a/wcfsetup/install/files/lib/system/WCFACP.class.php +++ b/wcfsetup/install/files/lib/system/WCFACP.class.php @@ -64,7 +64,7 @@ class WCFACP extends WCF { // this is a work-around since neither RequestHandler // nor RouteHandler are populated right now $pathInfo = RouteHandler::getPathInfo(); - if (empty($pathInfo) || !preg_match('~^/(ACPCaptcha|Login|Logout)/~', $pathInfo)) { + if (empty($pathInfo) || !preg_match('~^/?(ACPCaptcha|Login|Logout)/~', $pathInfo)) { if (WCF::getUser()->userID == 0) { // work-around for AJAX-requests within ACP if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') { diff --git a/wcfsetup/install/files/options.inc.php b/wcfsetup/install/files/options.inc.php index c081d3c684..6b86ef3446 100644 --- a/wcfsetup/install/files/options.inc.php +++ b/wcfsetup/install/files/options.inc.php @@ -33,3 +33,4 @@ define('TIMEZONE', 'Europe/Berlin'); define('ENABLE_DEBUG_MODE', 1); define('ENABLE_BENCHMARK', 0); define('EXTERNAL_LINK_TARGET_BLANK', 0); +define('URL_LEGACY_MODE', 0); -- 2.20.1