Skip to content

Commit

Permalink
Fix Document::parse_HTML_attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Jul 13, 2017
1 parent ede756b commit ac37de8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main/inc/lib/document.lib.php
Expand Up @@ -2559,7 +2559,9 @@ public static function parse_HTML_attributes($attrString, $wanted = array(), $ex
$value_modified = str_replace('&', '&', $value);
$value_array = explode('&', $value_modified);
foreach ($value_array as $item) {
list($key, $item_value) = explode('=', $item);
$itemParts = explode('=', $item);
$key = $itemParts[0];
$item_value = !empty($itemParts[1]) ? $itemParts[1] : '';
if ($key == $explode_variables[$name]) {
$attributes[strtolower($name)][] = $item_value;
}
Expand Down

0 comments on commit ac37de8

Please sign in to comment.