Skip to content
This repository has been archived by the owner on Sep 30, 2022. It is now read-only.

Commit

Permalink
fixes potential SQL injection vector in Active Record offset()
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Sep 1, 2011
1 parent 886d87c commit 0e85763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/database/DB_active_rec.php
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ public function limit($value, $offset = '')
*/
public function offset($offset)
{
$this->ar_offset = $offset;
$this->ar_offset = (int) $offset;
return $this;
}

Expand Down

0 comments on commit 0e85763

Please sign in to comment.