Skip to content

Commit

Permalink
Merge pull request #26048 from owncloud/stable9.1-cath-needs-upgrade-…
Browse files Browse the repository at this point in the history
…non-cli

[Stable9.1] catch needs upgrade non cli
  • Loading branch information
Vincent Petry committed Sep 7, 2016
2 parents faa6c45 + a2d01aa commit bc81af7
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 bc81af7

Please sign in to comment.