SQL abstraction layer improvement.

4.6.x
Gerhard Killesreiter 2006-05-24 20:46:41 +00:00
parent f51ae8e75d
commit 3186c6aad0
3 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Drupal 4.6.7, 2006-05-24
------------------------
- fixed critical SQL issue, see SA-2006-005
Drupal 4.6.6, 2006-03-13
------------------------
- fixed bugs, including 4 security vulnerabilities.

View File

@ -203,7 +203,7 @@ function db_query_range($query) {
$args[0] = $query;
$query = call_user_func_array('sprintf', $args);
}
$query .= ' LIMIT '. $from .', '. $count;
$query .= ' LIMIT '. (int)$from .', '. (int)$count;
return _db_query($query);
}

View File

@ -196,7 +196,7 @@ function db_query_range($query) {
$args[0] = $query;
$query = call_user_func_array('sprintf', $args);
}
$query .= ' LIMIT '. $count .' OFFSET '. $from;
$query .= ' LIMIT '. (int)$count .' OFFSET '. (int)$from;
return _db_query($query);
}