Skip to content

Commit

Permalink
add xss filter to search term
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah committed Aug 30, 2012
1 parent f385239 commit d4ab542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gocart/controllers/cart.php
Expand Up @@ -84,7 +84,7 @@ function search($code=false, $page = 0)
if(!$code)
{
//if the term is in post, save it to the db and give me a reference
$term = $this->input->post('term');
$term = $this->input->post('term', true);
$code = $this->Search_model->record_term($term);
}
else
Expand Down

0 comments on commit d4ab542

Please sign in to comment.