Skip to content

Commit

Permalink
Pass web requests to occ controller if upgrade is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
VicDeo committed Sep 6, 2016
1 parent 7cc8f4d commit a2d01aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,12 @@ public static function handleRequest() {
OC_Util::setupFS();
OC::$server->getRouter()->match(\OC::$server->getRequest()->getRawPathInfo());
return;
} catch (\OC\NeedsUpdateException $e) {
if ($isOccControllerRequested && $needUpgrade){
OC::$server->getRouter()->match(\OC::$server->getRequest()->getRawPathInfo());
return;
}
throw $e;
} catch (Symfony\Component\Routing\Exception\ResourceNotFoundException $e) {
//header('HTTP/1.0 404 Not Found');
} catch (Symfony\Component\Routing\Exception\MethodNotAllowedException $e) {
Expand Down

0 comments on commit a2d01aa

Please sign in to comment.