Projet

Général

Profil

Révision f066bdb5

Ajouté par Assos Assos il y a plus de 9 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/feeds_xpathparser/FeedsXPathParserQueryParser.inc
33 33
  function start() {
34 34
    for ($i=0; $i < drupal_strlen($this->query); $i++) {
35 35
      $this->i = $i;
36
      $c = $this->query[$i];
36
      $c = drupal_substr($this->query, $i, 1);
37 37

  
38 38
      if ($c == '"' || $c == "'") {
39 39
        $this->handle_quote($c);
......
89 89
    if ($this->word == '') {
90 90
      return;
91 91
    }
92
    if ($c == ':' && $this->query[$this->i + 1] == ':') {
92

  
93
    if ($c == ':' && drupal_substr($this->query, $this->i + 1, 1) == ':') {
93 94
      $this->axis = $this->word;
94 95
    }
95
    if ($c == ':' && $this->query[$this->i - 1] != ':'  &&
96
        $this->query[$this->i + 1] != ':') {
96

  
97
    if ($c == ':' && drupal_substr($this->query, $this->i - 1, 1) != ':'  &&
98
        drupal_substr($this->query, $this->i + 1, 1) != ':') {
97 99
      $this->output .= $this->word;
98 100
      $this->skip_next_word = TRUE;
99 101
      return;

Formats disponibles : Unified diff