--- crloginform.ihtml.org Sun Feb 11 20:30:26 2001 +++ crloginform.ihtml Sun Feb 11 20:30:59 2001 @@ -41,6 +41,17 @@ + +// Escape stuff that gets printed to page to avoid cross site scripting: +function escape($string) { + $string = preg_replace("/&/", "&", $string); + $string = preg_replace("/\"/", """, $string); + $string = preg_replace("/", "<", $string); + $string = preg_replace("/>/", ">", $string); + return $string; +} +?> +
Test for Login
@@ -48,11 +59,11 @@ Please identify yourself with a username and a password:-

