aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-01-05 16:10:10 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-01-05 16:10:10 +0000
commita7984e660da4def80d28a4efeacb5ee861c4718c (patch)
tree18c200ce69257f9611e9fa93ebf4154c4237278b /phpBB/includes/functions_user.php
parent1074925720e84bcb9f2b1b6908da805c132a1c8a (diff)
downloadforums-a7984e660da4def80d28a4efeacb5ee861c4718c.tar
forums-a7984e660da4def80d28a4efeacb5ee861c4718c.tar.gz
forums-a7984e660da4def80d28a4efeacb5ee861c4718c.tar.bz2
forums-a7984e660da4def80d28a4efeacb5ee861c4718c.tar.xz
forums-a7984e660da4def80d28a4efeacb5ee861c4718c.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/branches/phpBB-3_0_0@8306 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php17
1 files changed, 3 insertions, 14 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index c9921cc6f0..af9e69d00c 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);
}
/**
@@ -1472,20 +1475,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;
}