fix only alpha

This commit is contained in:
admin
2021-07-11 10:32:35 +02:00
parent 5f2502877b
commit 8638f28847

View File

@@ -51,7 +51,7 @@ function endsWith($haystack, $needle) {
return $length === 0 || (substr ( $haystack, - $length ) === $needle);
}
function onlyAlpha($str, $zus = '') {
return preg_replace ( "/[^a-zA-Z0-9 \-\{$zus}_]+/", "", $str );
return preg_replace ( "/[^a-zA-Z0-9 \-\_{$zus}]+/", "", $str );
}
function shortener($str, $len = 50, $fill = '...') {
if (strlen ( $str ) > $len) {