Allow hyphens in HTML tags HFJ-1951

pull/23/head
andyrandom 2016-06-21 09:34:27 +02:00 committed by Frode Petterson
parent e412c3a228
commit 8cb0aad09e
1 changed files with 1 additions and 1 deletions

View File

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