/ Published in: PHP
By Eduardo de la Torre.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php // SECURE STRINGS IN LOGIN ETC. // By Eduardo de la Torre from www.atinamedia.com function clean_string($string, $length){ return $string; } // Example: // If... Triying XSS $foo = "<scrip>alert(\"ALARM!!\");</script>"; // The length is limit to 40 characters (for example) echo clean_string($foo, 40); ?>