Subversion Repositories ALCASAR

Rev

Blame | Last modification | View Log

<?php
/*
All functions have the al_ (for alcasar) prefix 
*/
function al_escape($str){
        if(!empty($str) && is_string($str)) {
                if (get_magic_quotes_gpc()) {
                        $str = stripslashes(str);
                }
                $search=array("\\","\0","\n","\r","\x1a","'",'"');
                $replace=array("\\\\","\\0","\\n","\\r","\Z","\'",'\"');
                return str_replace($search,$replace,$str);
        }
}
?>

Generated by GNU Enscript 1.6.6.