]> git.mxchange.org Git - friendica.git/commitdiff
html5 parser - numeric attribute names chucking a wobbly.
authorFriendika <info@friendika.com>
Fri, 11 Nov 2011 22:21:52 +0000 (14:21 -0800)
committerFriendika <info@friendika.com>
Fri, 11 Nov 2011 22:21:52 +0000 (14:21 -0800)
boot.php
library/HTML5/TreeBuilder.php

index fb394c59a6eaaa7cccc352b4bafd3c189500f557..05da3bba93295401ffe898d70b2cda1249167515 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -9,7 +9,7 @@ require_once('include/nav.php');
 require_once('include/cache.php');
 
 define ( 'FRIENDIKA_PLATFORM',     'Friendica');
-define ( 'FRIENDIKA_VERSION',      '2.3.1161' );
+define ( 'FRIENDIKA_VERSION',      '2.3.1162' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.22'    );
 define ( 'DB_UPDATE_VERSION',      1103      );
 
index a64816f5678bcf205ac6a932b28de6f906dbf80e..c0074ec73fca54b9251380866fb302165ffc2f8a 100644 (file)
@@ -3041,9 +3041,9 @@ 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
+                               // mike@macgirvin.com 2011-10-21, stray double quotes and/or numeric tags cause everything to abort
                                $attr['name'] = str_replace('"','',$attr['name']);
-                if(!$el->hasAttribute($attr['name'])) {
+                if(!$el->hasAttribute($attr['name']) && (! is_numeric($attr['name']))) {
                     $el->setAttribute($attr['name'], $attr['value']);
                 }
             }