Changeset 3592:940d0c9a5dac
- Timestamp:
- 09/14/17 13:49:02 (8 years ago)
- Branch:
- 2.12
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.blog.php
r3423 r3592 1940 1940 { 1941 1941 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli') { 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.