Skip to content
Snippets Groups Projects
Commit ef4dc22a authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #23369 from owncloud/use-raw-path

Use raw PATH_INFO
parents b9da594b 24abe1e1
No related branches found
No related tags found
No related merge requests found
......@@ -62,8 +62,8 @@
# Rewrite rules for `front_controller_active`
Options -MultiViews
RewriteRule ^core/js/oc.js$ index.php/core/js/oc.js [PT,E=PATH_INFO:$1]
RewriteRule ^core/preview.png$ index.php/core/preview.png [PT,E=PATH_INFO:$1]
RewriteRule ^core/js/oc.js$ index.php [PT,E=PATH_INFO:$1]
RewriteRule ^core/preview.png$ index.php [PT,E=PATH_INFO:$1]
RewriteCond %{REQUEST_FILENAME} !\.(css|js|svg|gif|png|html|ttf|woff|ico|jpg|jpeg)$
RewriteCond %{REQUEST_FILENAME} !core/img/favicon.ico$
RewriteCond %{REQUEST_FILENAME} !/remote.php
......
......@@ -823,7 +823,7 @@ class OC {
}
$request = \OC::$server->getRequest();
$requestPath = $request->getPathInfo();
$requestPath = $request->getRawPathInfo();
if (substr($requestPath, -3) !== '.js') { // we need these files during the upgrade
self::checkMaintenanceMode();
self::checkUpgrade();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment