From 50a412b7d3db9d2937aeacb61fc80c320b091cba Mon Sep 17 00:00:00 2001 From: Neil Kandalgaonkar Date: Tue, 15 Mar 2011 04:37:06 +0000 Subject: [PATCH] the vertical tab \v and form feed \f escapes are not available in php5.2.4 which is what we run in production. Using equivalent hexadecimal --- includes/libs/JavaScriptMinifier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/libs/JavaScriptMinifier.php b/includes/libs/JavaScriptMinifier.php index d2a16f64bf..e483b4a714 100644 --- a/includes/libs/JavaScriptMinifier.php +++ b/includes/libs/JavaScriptMinifier.php @@ -422,7 +422,7 @@ class JavaScriptMinifier { while( $pos < $length ) { // First, skip over any whitespace and multiline comments, recording whether we // found any newline character - $skip = strspn( $s, " \t\n\r\v\f", $pos ); + $skip = strspn( $s, " \t\n\r\xb\xc", $pos ); if( !$skip ) { $ch = $s[$pos]; if( $ch === '/' && substr( $s, $pos, 2 ) === '/*' ) { -- 2.20.1