Dotclear


Ignore:
Timestamp:
12/19/17 06:50:17 (8 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Parents:
3621:e1a3f3cf4930 (diff), 3611:e8ccb1c08e9f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge 2.12 commits since 2.12.1 in default branch

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.blog.php

    r3592 r3622  
    694694          if (!$rs->isEmpty()) 
    695695          { 
    696                if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli') { 
     696               if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli' || $this->con->driver() == 'mysqlimb4') { 
    697697                    $clause = "REGEXP '^".$this->con->escape($url)."[0-9]+$'"; 
    698698               } elseif ($this->con->driver() == 'pgsql') { 
     
    19391939          if (!$rs->isEmpty()) 
    19401940          { 
    1941                if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli') { 
     1941               if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli' || $this->con->driver() == 'mysqlimb4') { 
    19421942                    $clause = "REGEXP '^".$this->con->escape(preg_quote($url))."[0-9]+$'"; 
    19431943               } elseif ($this->con->driver() == 'pgsql') { 
  • inc/core/class.dc.blog.php

    r3565 r3622  
    19401940          { 
    19411941               if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli' || $this->con->driver() == 'mysqlimb4') { 
    1942                     $clause = "REGEXP '^".$this->con->escape($url)."[0-9]+$'"; 
     1942                    $clause = "REGEXP '^".$this->con->escape(preg_quote($url))."[0-9]+$'"; 
    19431943               } elseif ($this->con->driver() == 'pgsql') { 
    1944                     $clause = "~ '^".$this->con->escape($url)."[0-9]+$'"; 
     1944                    $clause = "~ '^".$this->con->escape(preg_quote($url))."[0-9]+$'"; 
    19451945               } else { 
    1946                     $clause = "LIKE '".$this->con->escape($url)."%'"; 
     1946                    $clause = "LIKE '". 
     1947                              $this->con->escape(preg_replace(array('%','_','!'),array('!%','!_','!!'),$url)). 
     1948                              "%' ESCAPE '!'"; 
    19471949               } 
    19481950               $strReq = 'SELECT post_url FROM '.$this->prefix.'post '. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map