MDL-49631 fix incorrect whitespace remplacements
This commit is contained in:
+1
-1
@@ -1099,7 +1099,7 @@ function clean_param($param, $type) {
|
||||
// Remove some nasties.
|
||||
$param = preg_replace('~[[:cntrl:]]|[<>`]~u', '', $param);
|
||||
// Convert many whitespace chars into one.
|
||||
$param = preg_replace('/\s+/', ' ', $param);
|
||||
$param = preg_replace('/\s+/u', ' ', $param);
|
||||
$param = core_text::substr(trim($param), 0, TAG_MAX_LENGTH);
|
||||
return $param;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user