mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 18:11:41 -04:00
Merge pull request #10440 from owncloud/enforce-debug
Remove ability to trigger DEBUG mode via cookie
This commit is contained in:
commit
1fff77f5de
1 changed files with 0 additions and 7 deletions
|
|
@ -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…
Reference in a new issue