[SPIP] ~maj v3.2.9-->v3.2.11
[lhc/web/www.git] / www / plugins-dist / safehtml / lib / safehtml / classes / HTMLSax3.php
index 8102868..2b71148 100644 (file)
@@ -68,7 +68,7 @@ class XML_HTMLSax3_StateParser {
 \r
  function scanCharacter() {\r
   if ($this->position < $this->length) {\r
-   return $this->rawtext{$this->position++};\r
+   return $this->rawtext[$this->position++];\r
   }\r
  }\r
 \r
@@ -166,7 +166,7 @@ class XML_HTMLSax3_StateParser_Lt430 extends XML_HTMLSax3_StateParser {
 \r
  function scanUntilCharacters($string) {\r
   $startpos = $this->position;\r
-  while ($this->position < $this->length && strpos($string, $this->rawtext{$this->position}) === FALSE) {\r
+  while ($this->position < $this->length && strpos($string, $this->rawtext[$this->position]) === FALSE) {\r
    $this->position++;\r
   }\r
   return substr($this->rawtext, $startpos, $this->position - $startpos);\r
@@ -174,7 +174,7 @@ class XML_HTMLSax3_StateParser_Lt430 extends XML_HTMLSax3_StateParser {
 \r
  function ignoreWhitespace() {\r
   while ($this->position < $this->length && \r
-   strpos(" \n\r\t", $this->rawtext{$this->position}) !== FALSE) {\r
+   strpos(" \n\r\t", $this->rawtext[$this->position]) !== FALSE) {\r
    $this->position++;\r
   }\r
  }\r