diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-08-24 08:49:04 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-08-24 08:49:04 +0000 |
commit | 0ad40f33d42fcd84c16cdd7f67088071dd5e7a2a (patch) | |
tree | 49c78637d217cf6e938d1b1acc3c22ef939492dc /includes/pager.inc | |
parent | d7e0b132ee7a4172fa94e85d33d302350eafef26 (diff) | |
download | brdo-0ad40f33d42fcd84c16cdd7f67088071dd5e7a2a.tar.gz brdo-0ad40f33d42fcd84c16cdd7f67088071dd5e7a2a.tar.bz2 |
#80200 by gorgen. More strict pager query regexp.
Diffstat (limited to 'includes/pager.inc')
-rw-r--r-- | includes/pager.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/pager.inc b/includes/pager.inc index 3ffb276a8..31e01a79a 100644 --- a/includes/pager.inc +++ b/includes/pager.inc @@ -62,7 +62,7 @@ function pager_query($query, $limit = 10, $element = 0, $count_query = NULL) { // Construct a count query if none was given. if (!isset($count_query)) { - $count_query = preg_replace(array('/SELECT.*?FROM/As', '/ORDER BY .*/'), array('SELECT COUNT(*) FROM', ''), $query); + $count_query = preg_replace(array('/SELECT.*?FROM /As', '/ORDER BY .*/'), array('SELECT COUNT(*) FROM ', ''), $query); } // Convert comma-separated $page to an array, used by other functions. |