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.
remotes/origin/fix-10825
Lukas Reschke 11 years ago
parent 93f5e90c9f
commit a4a897d26d
  1. 7
      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) {

Loading…
Cancel
Save