diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-08-15 11:21:56 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-08-15 11:21:56 +0200 |
commit | a4a897d26d15202f2cebbaa179555674d2dc19e5 (patch) | |
tree | 03dfbcb24365df4315815b99ad02557cacca54dd /lib | |
parent | 93f5e90c9f92e165b159bfffc80820863c55654c (diff) | |
download | nextcloud-server-a4a897d26d15202f2cebbaa179555674d2dc19e5.tar.gz nextcloud-server-a4a897d26d15202f2cebbaa179555674d2dc19e5.zip |
Remove ability to trigger DEBUG mode via cookie
Users should not be able to enable debug mode on their own by setting a cookie. Using debug mode might leak too much information about the environment or have other unexpected behaviour.
We should backport this.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/base.php | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/base.php b/lib/base.php index ab1d8e98231..c3384fbeeea 100644 --- a/lib/base.php +++ b/lib/base.php @@ -491,13 +491,6 @@ class OC { require_once $vendorAutoLoad; } - // set debug mode if an xdebug session is active - if (!defined('DEBUG') || !DEBUG) { - if (isset($_COOKIE['XDEBUG_SESSION'])) { - define('DEBUG', true); - } - } - if (!defined('PHPUNIT_RUN')) { OC\Log\ErrorHandler::setLogger(OC_Log::$object); if (defined('DEBUG') and DEBUG) { |