[eluser]coolgeek[/eluser]
[quote author="n0xie" date="1241713512"]If they're ID's I assume they are integers?
If so you could easily check if the id's passed to the method are integers. If so, then your data is secure.[/quote]
Is adding zero to the segment sufficient for ensuring that it is an integer? i.e.
Code:
$var = $this->uri->segment(3) + 0;
or casting it to an int?
Code:
$var = (int)$this->uri->segment(3);