diff options
author | Joas Schilling <coding@schilljs.com> | 2017-05-15 14:33:27 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-05-15 14:33:27 +0200 |
commit | 72c1b248442fb05ef2ef1e8fbf3399cb06188013 (patch) | |
tree | 49887a496537c7c3a673d4f7319b04721fae517a /lib/private/Route | |
parent | c56c98183d2c8078c436e9b2e0c4f2a0031b4729 (diff) | |
download | nextcloud-server-72c1b248442fb05ef2ef1e8fbf3399cb06188013.tar.gz nextcloud-server-72c1b248442fb05ef2ef1e8fbf3399cb06188013.zip |
Check whether the $_SERVER['REQUEST_*'] vars exist before using them
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Route')
-rw-r--r-- | lib/private/Route/Router.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Route/Router.php b/lib/private/Route/Router.php index fd15400dad4..71aabe15c51 100644 --- a/lib/private/Route/Router.php +++ b/lib/private/Route/Router.php @@ -75,7 +75,7 @@ class Router implements IRouter { if(!(\OC::$server->getConfig()->getSystemValue('htaccess.IgnoreFrontController', false) === true || getenv('front_controller_active') === 'true')) { $baseUrl = \OC::$server->getURLGenerator()->linkTo('', 'index.php'); } - if (!\OC::$CLI) { + if (!\OC::$CLI && isset($_SERVER['REQUEST_METHOD'])) { $method = $_SERVER['REQUEST_METHOD']; } else { $method = 'GET'; |