mirror of
https://github.com/friendica/friendica
synced 2024-11-20 13:43:41 +00:00
html5 parser - numeric attribute names chucking a wobbly.
This commit is contained in:
parent
20217c04f0
commit
c9014a111f
2 changed files with 3 additions and 3 deletions
2
boot.php
2
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 );
|
||||
|
||||
|
|
|
@ -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']);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue