]> source.dussan.org Git - nextcloud-server.git/commitdiff
Merge pull request #10440 from owncloud/enforce-debug
authorClark Tomlinson <fallen013@gmail.com>
Fri, 15 Aug 2014 13:03:29 +0000 (09:03 -0400)
committerClark Tomlinson <fallen013@gmail.com>
Fri, 15 Aug 2014 13:18:33 +0000 (09:18 -0400)
Remove ability to trigger DEBUG mode via cookie

lib/base.php

index b442935599c5ef60601de29f178c866d38fb6eb3..5d7408e65da04fb421a0a412fbb499a8113e1855 100644 (file)
@@ -495,13 +495,6 @@ class OC {
                }
                OC_Util::isSetLocaleWorking();
 
-               // 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('DEBUG') and DEBUG) {
                                OC\Log\ErrorHandler::register(true);