the vertical tab \v and form feed \f escapes are not available in php5.2.4 which...
authorNeil Kandalgaonkar <neilk@users.mediawiki.org>
Tue, 15 Mar 2011 04:37:06 +0000 (04:37 +0000)
committerNeil Kandalgaonkar <neilk@users.mediawiki.org>
Tue, 15 Mar 2011 04:37:06 +0000 (04:37 +0000)
includes/libs/JavaScriptMinifier.php

index d2a16f6..e483b4a 100644 (file)
@@ -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 ) === '/*' ) {