From 8cb0aad09e0c6dc0ade4bcea665074783370988c Mon Sep 17 00:00:00 2001 From: andyrandom Date: Tue, 21 Jun 2016 09:34:27 +0200 Subject: [PATCH] Allow hyphens in HTML tags HFJ-1951 --- h5p.classes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h5p.classes.php b/h5p.classes.php index 93c4213..46af520 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -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 ''; }