diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/AppFramework/Middleware/OCSMiddleware.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/AppFramework/Middleware/OCSMiddleware.php b/lib/private/AppFramework/Middleware/OCSMiddleware.php index 0d97aa6ed94..e07d100d8ac 100644 --- a/lib/private/AppFramework/Middleware/OCSMiddleware.php +++ b/lib/private/AppFramework/Middleware/OCSMiddleware.php @@ -58,7 +58,7 @@ class OCSMiddleware extends Middleware { } $response = new OCSResponse($format, $code, $exception->getMessage()); - if ($this->request->getScriptName() === '/ocs/v2.php') { + if (substr_compare($this->request->getScriptName(), '/ocs/v2.php', -strlen('/ocs/v2.php')) === 0) { $response->setStatus($code); } return $response; |