Changeset 3622:d7c2089bb952 for inc/core/class.dc.blog.php
- Timestamp:
- 12/19/17 06:50:17 (8 years ago)
- 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. - Files:
-
- 2 edited
-
inc/core/class.dc.blog.php (modified) (2 diffs)
-
inc/core/class.dc.blog.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.blog.php
r3592 r3622 694 694 if (!$rs->isEmpty()) 695 695 { 696 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli' ) {696 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli' || $this->con->driver() == 'mysqlimb4') { 697 697 $clause = "REGEXP '^".$this->con->escape($url)."[0-9]+$'"; 698 698 } elseif ($this->con->driver() == 'pgsql') { … … 1939 1939 if (!$rs->isEmpty()) 1940 1940 { 1941 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli' ) {1941 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli' || $this->con->driver() == 'mysqlimb4') { 1942 1942 $clause = "REGEXP '^".$this->con->escape(preg_quote($url))."[0-9]+$'"; 1943 1943 } elseif ($this->con->driver() == 'pgsql') { -
inc/core/class.dc.blog.php
r3565 r3622 1940 1940 { 1941 1941 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]+$'"; 1943 1943 } elseif ($this->con->driver() == 'pgsql') { 1944 $clause = "~ '^".$this->con->escape( $url)."[0-9]+$'";1944 $clause = "~ '^".$this->con->escape(preg_quote($url))."[0-9]+$'"; 1945 1945 } else { 1946 $clause = "LIKE '".$this->con->escape($url)."%'"; 1946 $clause = "LIKE '". 1947 $this->con->escape(preg_replace(array('%','_','!'),array('!%','!_','!!'),$url)). 1948 "%' ESCAPE '!'"; 1947 1949 } 1948 1950 $strReq = 'SELECT post_url FROM '.$this->prefix.'post '.
Note: See TracChangeset
for help on using the changeset viewer.
