diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-08-11 01:00:26 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-08-11 01:36:16 +0200 |
commit | 1025e451a7610a9e5b50e7e99e808cb2d1915236 (patch) | |
tree | 175aa92495d87cf9f673b7b01d9eb72facb2473a /lib/base.php | |
parent | 1763de08d0a4e8374cd21bf71d825b92426509f1 (diff) | |
download | nextcloud-server-1025e451a7610a9e5b50e7e99e808cb2d1915236.tar.gz nextcloud-server-1025e451a7610a9e5b50e7e99e808cb2d1915236.zip |
Add router match to OC::handleRequest
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index b276cf5924d..a05d84fbae4 100644 --- a/lib/base.php +++ b/lib/base.php @@ -421,6 +421,15 @@ class OC{ header('location: '.OC_Helper::linkToRemote('webdav')); return; } + try { + OC::getRouter()->match(OC_Request::getPathInfo()); + return; + } catch (Symfony\Component\Routing\Exception\ResourceNotFoundException $e) { + //header('HTTP/1.0 404 Not Found'); + } catch (Symfony\Component\Routing\Exception\MethodNotAllowedException $e) { + OC_Response::setStatus(405); + return; + } // Handle app css files if(substr(OC::$REQUESTEDFILE,-3) == 'css') { self::loadCSSFile(); |