X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fqunit%2Fdata%2FstyleTest.css.php;h=0e8458112451d967ba96c2c10dc27a3c67a6d13f;hb=5203b9bb237766305d6b80a649754ff51c8928ad;hp=093c71f150a76b995dbe7b7ede9ca98ba7d306fd;hpb=684c45e1edfdb3650167f5ab0b081d4f54ac6e80;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/qunit/data/styleTest.css.php b/tests/qunit/data/styleTest.css.php index 093c71f150..0e84581124 100644 --- a/tests/qunit/data/styleTest.css.php +++ b/tests/qunit/data/styleTest.css.php @@ -25,14 +25,15 @@ header( 'Content-Type: text/css; charset=utf-8' ); /** - * Allows characters in ranges [a-z], [A-Z], [0-9] as well as a dot ("."), dash ("-") and hash ("#"). + * Allows characters in ranges [a-z], [A-Z] and [0-9], + * in addition to a dot ("."), dash ("-"), space (" ") and hash ("#"). * @since 1.20 * - * @param $val string - * @return string: input with illigal characters removed + * @param string $val + * @return string Value with any illegal characters removed. */ function cssfilter( $val ) { - return preg_replace( '/[^A-Za-z0-9\.\-#]/', '', $val ); + return preg_replace( '/[^A-Za-z0-9\.\- #]/', '', $val ); } // Do basic sanitization @@ -46,9 +47,9 @@ $wait = isset( $params['wait'] ) ? (int)$params['wait'] : 0; // seconds sleep( $wait ); -$css = " +$css = " /** - * Generated " . gmdate( 'r' ) . ". + * Generated " . gmdate( 'r' ) . ". * Waited {$wait}s. */