diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2008-01-05 16:10:10 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-01-05 16:10:10 +0000 |
commit | f0dea060972a48460ce64d3cdf885d82383763c6 (patch) | |
tree | 8ae56525469a3c62b35d14f38375554acbf7f1e3 /phpBB/includes/functions_user.php | |
parent | a4633d8ac09f50aceb9e5568baff59de61508bc8 (diff) | |
download | forums-f0dea060972a48460ce64d3cdf885d82383763c6.tar forums-f0dea060972a48460ce64d3cdf885d82383763c6.tar.gz forums-f0dea060972a48460ce64d3cdf885d82383763c6.tar.bz2 forums-f0dea060972a48460ce64d3cdf885d82383763c6.tar.xz forums-f0dea060972a48460ce64d3cdf885d82383763c6.zip |
Correctly check empty subjects/messages (Bug #17915)
Do not check usernames against word censor list. Disallowed usernames is already checked and word censor belong to posts. (Bug #17745)
Additionally include non-postable forums for moderators forums shown within the teams list. (Bug #17265)
git-svn-id: file:///svn/phpbb/trunk@8306 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r-- | phpBB/includes/functions_user.php | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index edaaee3d8f..84e75670fb 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -137,6 +137,9 @@ function user_update_name($old_name, $new_name) { set_config('newest_username', $new_name, true); } + + // Because some tables/caches use username-specific data we need to purge this here. + $cache->destroy('sql', MODERATOR_CACHE_TABLE); } /** @@ -1422,20 +1425,6 @@ function validate_username($username, $allowed_username = false) } } - $sql = 'SELECT word - FROM ' . WORDS_TABLE; - $result = $db->sql_query($sql); - - while ($row = $db->sql_fetchrow($result)) - { - if (preg_match('#(' . str_replace('\*', '.*?', preg_quote($row['word'], '#')) . ')#i', $username)) - { - $db->sql_freeresult($result); - return 'USERNAME_DISALLOWED'; - } - } - $db->sql_freeresult($result); - return false; } |