Skip to content

Commit

Permalink
sanitize body input on search.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas CARPi committed Oct 25, 2013
1 parent 57084ea commit 3dde9a2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions search.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,7 @@
$tags = '';
}
if (isset($_GET['body']) && !empty($_GET['body'])) {
$body = check_body($_GET['body']);
// TODO filter sanitize to test xss
// $body = filter_var($body, FILTER_SANITIZE_STRING);
$body = filter_var(check_body($_GET['body']), FILTER_SANITIZE_STRING);
} else {
$body = '';
}
Expand Down

0 comments on commit 3dde9a2

Please sign in to comment.