diff options
author | Jakub Senko <jakubsenko@gmail.com> | 2014-10-26 20:08:28 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-11-28 20:00:48 +0100 |
commit | b7f69edaa273fec2b29a9300a766ffb9639686d2 (patch) | |
tree | 219296c17d44b8ed46e76238e8e43c85d1196272 /phpBB/phpbb/profilefields | |
parent | 8f1a1874a9fa6043e27d297ee14d5e622e177002 (diff) | |
download | forums-b7f69edaa273fec2b29a9300a766ffb9639686d2.tar forums-b7f69edaa273fec2b29a9300a766ffb9639686d2.tar.gz forums-b7f69edaa273fec2b29a9300a766ffb9639686d2.tar.bz2 forums-b7f69edaa273fec2b29a9300a766ffb9639686d2.tar.xz forums-b7f69edaa273fec2b29a9300a766ffb9639686d2.zip |
[ticket/12866] Assume underscore is part of \w
PHPBB3-12866
Diffstat (limited to 'phpBB/phpbb/profilefields')
-rw-r--r-- | phpBB/phpbb/profilefields/type/type_string_common.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/phpbb/profilefields/type/type_string_common.php b/phpBB/phpbb/profilefields/type/type_string_common.php index ff33a7b49c..f5e1992044 100644 --- a/phpBB/phpbb/profilefields/type/type_string_common.php +++ b/phpBB/phpbb/profilefields/type/type_string_common.php @@ -18,11 +18,11 @@ abstract class type_string_common extends type_base protected $validation_options = array( 'CHARS_ANY' => '.*', 'NUMBERS_ONLY' => '[0-9]+', - 'ALPHA_ONLY' => '[\w]+', - 'ALPHA_UNDERSCORE' => '[\w_]+', - 'ALPHA_DOTS' => '[\w.]+', - 'ALPHA_SPACERS' => '[\w\x20_+\-\[\]]+', - 'ALPHA_PUNCTUATION' => '[a-zA-Z][\w\.,\-_]+', + 'ALPHA_ONLY' => '[a-zA-Z0-9]+', + 'ALPHA_UNDERSCORE' => '[\w]+', + 'ALPHA_DOTS' => '[a-zA-Z0-9.]+', + 'ALPHA_SPACERS' => '[\w\x20+\-\[\]]+', + 'ALPHA_PUNCTUATION' => '[a-zA-Z][\w\.,\-]+', 'LETTER_NUM_ONLY' => '[\p{Lu}\p{Ll}0-9]+', 'LETTER_NUM_UNDERSCORE' => '[\p{Lu}\p{Ll}0-9_]+', 'LETTER_NUM_DOTS' => '[\p{Lu}\p{Ll}0-9.]+', |