Skip to content

Commit 0dde92d

Browse files
kenjisnarfbg
authored andcommitted
fixes potential SQL injection vector in Active Record offset()
1 parent c0cd297 commit 0dde92d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/database/DB_active_rec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ public function limit($value, $offset = '')
895895
*/
896896
public function offset($offset)
897897
{
898-
$this->ar_offset = $offset;
898+
$this->ar_offset = (int) $offset;
899899
return $this;
900900
}
901901

0 commit comments

Comments
 (0)