Commit d75f3f87 authored by Sorrel Harriet's avatar Sorrel Harriet
Browse files

clarifying comment

parent 3d7767ce
......@@ -7,7 +7,7 @@
(this would ideally be in includes folder)
helps protect against XSS */
function clean_input($data) {
$data = trim($data); // strips unnecessary characters from beginning/end
$data = trim($data); // strips whitespace from beginning/end
$data = stripslashes($data); // remove backslashes
$data = htmlspecialchars($data); // replace special characters with HTML entities
return $data;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment