mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 08:17:47 +02:00
Various updates, forum links, "improve" forum management, cleanups, blah blah, note the schema changes, note also that forum management may misbehave ... reports on wrong doings are welcome ... seem to be having problems with some mcp functions under apache/win32
git-svn-id: file:///svn/phpbb/trunk@3961 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -438,8 +438,12 @@ class userdata extends user
|
||||
{
|
||||
global $db, $user;
|
||||
|
||||
// Clean up username ... convert any entities into normal
|
||||
// text, remove excess spaces, then escape it
|
||||
$username = strtr(trim($username), array_flip(get_html_translation_table(HTML_ENTITIES)));
|
||||
$username = preg_replace('#[\s]{2,}#', '', $username);
|
||||
$username = $db->sql_escape($username);
|
||||
|
||||
|
||||
$sql = "SELECT username
|
||||
FROM " . USERS_TABLE . "
|
||||
WHERE LOWER(username) = '" . strtolower($username) . "'";
|
||||
@@ -500,7 +504,7 @@ class userdata extends user
|
||||
|
||||
if ($email != '')
|
||||
{
|
||||
if (preg_match('/^[a-z0-9\.\-_\+]+@[a-z0-9\-_]+\.([a-z0-9\-_]+\.)*?[a-z]+$/is', $email))
|
||||
if (preg_match('#^[a-z0-9\.\-_\+]+@[a-z0-9\-_]+\.([a-z0-9\-_]+\.)*?[a-z]+$#is', $email))
|
||||
{
|
||||
$sql = "SELECT ban_email
|
||||
FROM " . BANLIST_TABLE;
|
||||
|
Reference in New Issue
Block a user