Skip to content
Snippets Groups Projects
Commit 1fff77f5 authored by Clark Tomlinson's avatar Clark Tomlinson
Browse files

Merge pull request #10440 from owncloud/enforce-debug

Remove ability to trigger DEBUG mode via cookie
parents 98fc5683 a4a897d2
No related branches found
No related tags found
No related merge requests found
...@@ -491,13 +491,6 @@ class OC { ...@@ -491,13 +491,6 @@ class OC {
require_once $vendorAutoLoad; 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')) { if (!defined('PHPUNIT_RUN')) {
OC\Log\ErrorHandler::setLogger(OC_Log::$object); OC\Log\ErrorHandler::setLogger(OC_Log::$object);
if (defined('DEBUG') and DEBUG) { if (defined('DEBUG') and DEBUG) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment