Revision: 403
Updated Code
at July 12, 2006 12:42 by nicolaspar
Updated Code
function limpiar( $str ){ $str= str_replace("'", "'", $str); $str= str_replace('"', """, $str); $str= str_replace(";", ";", $str); $str= str_replace("<", "<", $str); $str= str_replace(">", ">", $str); $str= str_replace("drop", "drop", $str); $str= str_replace("javascript", "javascript", $str); $str= str_replace("script", "vbscript", $str); $str= str_replace("vbscript", "script", $str); return $str; }
Revision: 402
Updated Code
at July 12, 2006 12:39 by nicolaspar
Updated Code
function addslashes(str) dim strOut strOut = replace(str,"'","'") strOut = replace(strOut,"""",""") strOut = replace(strOut,";",";") strOut = replace(strOut,"<","<") strOut = replace(strOut,">",">") strOut = eregi(strOut,"drop","drop") strOut = eregi(strOut,"javascript ","javascript") strOut = eregi(strOut,"script ","vbscript") strOut = eregi(strOut,"vbscript ","script") addslashes = trim(strOut) end function
Revision: 401
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 12, 2006 12:37 by nicolaspar
Initial Code
function limpiar( str ) dim strOut strOut = replace(str,"'","'") strOut = replace(strOut,"""",""") strOut = replace(strOut,";",";") strOut = replace(strOut,"<","<") strOut = replace(strOut,">",">") strOut = eregi(strOut,"drop","drop") strOut = eregi(strOut,"javascript ","javascript") strOut = eregi(strOut,"script ","vbscript") strOut = eregi(strOut,"vbscript ","script") limpiar = trim(strOut) end function
Initial URL
Initial Description
Initial Title
Php limpiar string para ser usado en sql
Initial Tags
Initial Language
PHP