Commit 369c776c authored by Gerhard Killesreiter's avatar Gerhard Killesreiter
Browse files

SQL abstraction layer improvement.

parent c08eafe0
......@@ -5,6 +5,7 @@ Drupal x.x.x, xxxx-xx-xx (development version)
* improved configurability of the contact forms.
- distributed authentication:
* added default server option.
- fixed critical SQL issue, see SA-2006-005
Drupal 4.7.0, 2006-05-01
------------------------
......
......@@ -265,7 +265,7 @@ function db_query_range($query) {
}
_db_query_callback($args, TRUE);
$query = preg_replace_callback(DB_QUERY_REGEXP, '_db_query_callback', $query);
$query .= ' LIMIT '. $from .', '. $count;
$query .= ' LIMIT '. (int)$from .', '. (int)$count;
return _db_query($query);
}
......
......@@ -267,7 +267,7 @@ function db_query_range($query) {
}
_db_query_callback($args, TRUE);
$query = preg_replace_callback(DB_QUERY_REGEXP, '_db_query_callback', $query);
$query .= ' LIMIT '. $from .', '. $count;
$query .= ' LIMIT '. (int)$from .', '. (int)$count;
return _db_query($query);
}
......
......@@ -241,7 +241,7 @@ function db_query_range($query) {
}
_db_query_callback($args, TRUE);
$query = preg_replace_callback(DB_QUERY_REGEXP, '_db_query_callback', $query);
$query .= ' LIMIT '. $count .' OFFSET '. $from;
$query .= ' LIMIT '. (int)$count .' OFFSET '. (int)$from;
return _db_query($query);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment