Fix prevent unnecessary looping

wordpress wp-1.15.1
Frode Petterson 2021-04-22 10:18:43 +02:00
parent 0eca5935c0
commit efd98a719d
1 changed files with 1 additions and 1 deletions

View File

@ -4257,7 +4257,7 @@ class H5PContentValidator {
return '<';
}
if (!preg_match('%^<\s*(/\s*)?([a-zA-Z0-9\-]+)([^>]*)>?|(<!--.*?-->)$%', $string, $matches)) {
if (!preg_match('%^<\s*(/\s*)?([a-zA-Z0-9\-]+)\s*([^>]*)>?|(<!--.*?-->)$%', $string, $matches)) {
// Seriously malformed.
return '';
}