aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-20 16:48:07 -0700
committerFriendika <info@friendika.com>2011-10-20 16:48:07 -0700
commit01164c8c2f802f0b4c2f0f7c4a83ed826768ae1a (patch)
tree32b0ba9fc9c46057a44dfb97691fd548399c5520 /library
parentbef7a5d66bf7ef26e0d4da1c6209f3e23b0ccffe (diff)
downloadvolse-hubzilla-01164c8c2f802f0b4c2f0f7c4a83ed826768ae1a.tar.gz
volse-hubzilla-01164c8c2f802f0b4c2f0f7c4a83ed826768ae1a.tar.bz2
volse-hubzilla-01164c8c2f802f0b4c2f0f7c4a83ed826768ae1a.zip
fix various html parse errors
Diffstat (limited to 'library')
-rw-r--r--library/HTML5/TreeBuilder.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/HTML5/TreeBuilder.php b/library/HTML5/TreeBuilder.php
index 03e2ee77f..a64816f56 100644
--- a/library/HTML5/TreeBuilder.php
+++ b/library/HTML5/TreeBuilder.php
@@ -3041,6 +3041,8 @@ class HTML5_TreeBuilder {
if (!empty($token['attr'])) {
foreach($token['attr'] as $attr) {
+ // mike@macgirvin.com 2011-10-21, stray double quotes cause everything to abort
+ $attr['name'] = str_replace('"','',$attr['name']);
if(!$el->hasAttribute($attr['name'])) {
$el->setAttribute($attr['name'], $attr['value']);
}