Commit 86a348c3 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Sanatize.php: alnumx - added space, / ( ) as valid characters.

parent 0b953a7d
......@@ -40,7 +40,8 @@ class Sanatize {
case SANATIZE_ALLOW_ALNUMX:
// replace ALNUMX valid characters, which are not part of ctype_alnum, by valid ctype_alnum characters, to fake ctype_alnum
if (!ctype_alnum(str_replace(array('@', '-', '_', '.', ',', ';'), 'a', $value)))
// definetely forbidden: ' " \ % $
if (!ctype_alnum(str_replace(array('@', '-', '_', '.', ',', ';', ' ', '/', '(', ')'), 'a', $value)))
$value = '';
break;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment