PluginProbe
Taboola / 2.2.3
Taboola v2.2.3
1.0.4 1.0.5 1.0.6 1.0.8 2.0.1 2.0.2 2.1.0 2.1.1 2.2.2 2.2.3 3.0.0 3.0.1 3.0.2 3.1.0 trunk 1.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.2 1.0.3
← All changes | simple_html_dom.php +5 -2 1.0.32.2.3 View file →
@@ -685,9 +685,10 @@
685 685 // Notice the \[ starting the attbute? and the @? following? This implies that an attribute can begin with an @ sign that is not captured.
686 686 // This implies that an html attribute specifier may start with an @ sign that is NOT captured by the expression.
687 687 // farther study is required to determine of this should be documented or removed.
688 688 // $pattern = "/([\w-:\*]*)(?:\#([\w-]+)|\.([\w-]+))?(?:\[@?(!?[\w-]+)(?:([!*^$]?=)[\"']?(.*?)[\"']?)?\])?([\/, ]+)/is";
689 - $pattern = "/([\w-:\*]*)(?:\#([\w-]+)|\.([\w-]+))?(?:\[@?(!?[\w-:]+)(?:([!*^$]?=)[\"']?(.*?)[\"']?)?\])?([\/, ]+)/is";
689 +// $pattern = "/([\w-:\*]*)(?:\#([\w-]+)|\.([\w-]+))?(?:\[@?(!?[\w-:]+)(?:([!*^$]?=)[\"']?(.*?)[\"']?)?\])?([\/, ]+)/is";
690 + $pattern = "/([\w\-:\*]*)(?:\#([\w\-]+)|\.([\w\-]+))?(?:\[@?(!?[\w\-:]+)(?:([!*^$]?=)[\"']?(.*?)[\"']?)?\])?([\/, ]+)/is";
690 691 preg_match_all($pattern, trim($selector_string).' ', $matches, PREG_SET_ORDER);
691 692 if (is_object($debug_object)) {$debug_object->debug_log(2, "Matches Array: ", $matches);}
692 693
693 694 $selectors = array();
@@ -1381,9 +1382,11 @@
1381 1382 $this->char = $this->doc[--$this->pos]; // prev
1382 1383 return true;
1383 1384 }
1384 1385
1385 - if (!preg_match("/^[\w-:]+$/", $tag)) {
1386 +// /^[\w-:]+$/
1387 +
1388 + if (!preg_match("/^[\w\-:]+$/", $tag)) {
1386 1389 $node->_[HDOM_INFO_TEXT] = '<' . $tag . $this->copy_until('<>');
1387 1390 if ($this->char==='<') {
1388 1391 $this->link_nodes($node, false);
1389 1392 return true;