diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/functions_xml.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions_xml.inc.php b/include/functions_xml.inc.php index 64df545ce..7c388d292 100644 --- a/include/functions_xml.inc.php +++ b/include/functions_xml.inc.php @@ -52,7 +52,7 @@ function getContent( $element ) function getAttribute( $element, $attribute ) { // echo htmlentities($element).'<br /><br />'; - $regex = '/^<\w+[^>]*'.$attribute.'\s*=\s*"('.VAL_REG.')"/i'; + $regex = '/^<\w+[^>]*\b'.$attribute.'\s*=\s*"('.VAL_REG.')"/i'; if ( preg_match( $regex, $element, $out ) ) { return html_entity_decode($out[1], ENT_QUOTES); |