Skip to content

Commit

Permalink
Fix regexp issue #77 thanks LLfam
Browse files Browse the repository at this point in the history
  • Loading branch information
BSteelooper committed Jul 17, 2019
1 parent 8926e32 commit 666c748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/inc/functions.all.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ function preventXSS($var) {
*/
function latinOnlyInput($var) {
$var = str_replace(chr(0), '', $var);
$var = preg_replace("/[^a-zA-Z0-9.\ -_]+/", "", $var);;
$var = preg_replace("/[^a-zA-Z0-9.\ \-_]+/", "", $var);;
return $var;
}

Expand Down

0 comments on commit 666c748

Please sign in to comment.