18-01-2012, 23:24
zamien
na to
Kod:
function tep_sanitize_string($string) {
$string = ereg_replace(' +', ' ', trim($string));
return preg_replace("/[<>]/", '_', $string);
}
na to
Kod:
function tep_sanitize_string($string) {
$string = preg_replace('{ +}', ' ', trim($string));
return preg_replace("/[<>]/", '_', $string);
}