Permalink
Browse files

fixes potential SQL injection vector in Active Record offset()

  • Loading branch information...
kenjis authored and narfbg committed Sep 1, 2011
1 parent c0cd297 commit 0dde92def6b9f276f05ff77abb07ead318f9ec23
Showing with 1 addition and 1 deletion.
  1. +1 −1 system/database/DB_active_rec.php
@@ -895,7 +895,7 @@ public function limit($value, $offset = '')
*/
public function offset($offset)
{
$this->ar_offset = $offset;
$this->ar_offset = (int) $offset;
return $this;
}

0 comments on commit 0dde92d

Please sign in to comment.