Revert r102504 (allow ESC in debug output): the justification in the comment above...
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 9 Dec 2011 06:03:27 +0000 (06:03 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 9 Dec 2011 06:03:27 +0000 (06:03 +0000)
includes/GlobalFunctions.php

index 7624887..3223a55 100644 (file)
@@ -830,7 +830,7 @@ function wfDebug( $text, $logonly = false ) {
                if ( $wgDebugLogFile != '' && !$wgProfileOnly ) {
                        # Strip unprintables; they can switch terminal modes when binary data
                        # gets dumped, which is pretty annoying.
-                       $text = preg_replace( '![\x00-\x08\x0b\x0c\x0e-\x1a\x1c-\x1f]!', ' ', $text );
+                       $text = preg_replace( '![\x00-\x08\x0b\x0c\x0e-\x1f]!', ' ', $text );
                        $text = $wgDebugLogPrefix . $text;
                        wfErrorLog( $text, $wgDebugLogFile );
                }