1
1
Fork 0

more bugs

This commit is contained in:
Mike Macgirvin 2010-07-19 06:58:03 -07:00
commit 6695b4a203
13 changed files with 25 additions and 25 deletions

View file

@ -205,12 +205,10 @@ function notags($string) {
return(str_replace(array("<",">","\xBA","\xBC","\xBE"), array('[',']','','',''), $string));
}}
// The PHP built-in tag escape function has traditionally been buggy
if(! function_exists('escape_tags')) {
function escape_tags($string) {
return(str_replace(
array('&', '"', "'", '<', '>'),
array('&amp;', '&quot;', '&#39;', '&lt;', '&gt;'), $string));
return(htmlspecialchars($string));
}}
if(! function_exists('login')) {