PluginProbe
Taboola / 1.0.3
Taboola v1.0.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 +2 -5 2.0.11.0.3 View file →
@@ -685,10 +685,9 @@
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";
690 - $pattern = "/([\w\-:\*]*)(?:\#([\w\-]+)|\.([\w\-]+))?(?:\[@?(!?[\w\-:]+)(?:([!*^$]?=)[\"']?(.*?)[\"']?)?\])?([\/, ]+)/is";
689 + $pattern = "/([\w-:\*]*)(?:\#([\w-]+)|\.([\w-]+))?(?:\[@?(!?[\w-:]+)(?:([!*^$]?=)[\"']?(.*?)[\"']?)?\])?([\/, ]+)/is";
691 690 preg_match_all($pattern, trim($selector_string).' ', $matches, PREG_SET_ORDER);
692 691 if (is_object($debug_object)) {$debug_object->debug_log(2, "Matches Array: ", $matches);}
693 692
694 693 $selectors = array();
@@ -1382,11 +1381,9 @@
1382 1381 $this->char = $this->doc[--$this->pos]; // prev
1383 1382 return true;
1384 1383 }
1385 1384
1386 -// /^[\w-:]+$/
1387 -
1388 - if (!preg_match("/^[\w\-:]+$/", $tag)) {
1385 + if (!preg_match("/^[\w-:]+$/", $tag)) {
1389 1386 $node->_[HDOM_INFO_TEXT] = '<' . $tag . $this->copy_until('<>');
1390 1387 if ($this->char==='<') {
1391 1388 $this->link_nodes($node, false);
1392 1389 return true;