// 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)/~i', $pathInfo)) {
+ if (empty($pathInfo) || !preg_match('~^/?(acp-?captcha|login|logout)/~i', $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') {
// drop session id
$redirectURI = preg_replace('~[&\?]s=[a-f0-9]{40}(&|$)~', '', WCF::getSession()->requestURI);
- $path = $pageURL . 'acp/?Login/' . SID_ARG_2ND_NOT_ENCODED . '&url=' . rawurlencode(RouteHandler::getProtocol() . $_SERVER['HTTP_HOST'] . $redirectURI);
+ $path = $pageURL . 'acp/index.php?login/' . SID_ARG_2ND_NOT_ENCODED . '&url=' . rawurlencode(RouteHandler::getProtocol() . $_SERVER['HTTP_HOST'] . $redirectURI);
HeaderUtil::redirect($path);
exit;
$controller = explode('\\', $controller);
$controllerName = preg_replace('~(Action|Form|Page)$~', '', array_pop($controller));
- if (URL_TO_LOWERCASE) $controllerName = mb_strtolower($controllerName);
self::$defaultControllers[$controller[0]] = $controllerName;
}