aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/profile.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-12-21 20:39:10 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-12-21 20:39:10 +0000
commite06886df8ff40d4ec55840f7d1e483464d9a31d6 (patch)
treef11701b95b679279fb99cae20e0d50fdcec21705 /phpBB/profile.php
parent02fa50742b7ddfcf7c40ed9572de812e6d7fa44c (diff)
downloadforums-e06886df8ff40d4ec55840f7d1e483464d9a31d6.tar
forums-e06886df8ff40d4ec55840f7d1e483464d9a31d6.tar.gz
forums-e06886df8ff40d4ec55840f7d1e483464d9a31d6.tar.bz2
forums-e06886df8ff40d4ec55840f7d1e483464d9a31d6.tar.xz
forums-e06886df8ff40d4ec55840f7d1e483464d9a31d6.zip
Fix bug #490164
git-svn-id: file:///svn/phpbb/trunk@1667 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/profile.php')
-rw-r--r--phpBB/profile.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/profile.php b/phpBB/profile.php
index 090a06d93d..b609743381 100644
--- a/phpBB/profile.php
+++ b/phpBB/profile.php
@@ -966,7 +966,7 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
$user_avatar_remoteurl = "http://" . $user_avatar_remoteurl;
}
- if( preg_match("#^http:\/\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+\/.*?\.(gif|jpg|png)$#is", $user_avatar_remoteurl) )
+ if( preg_match("#^(http:\/\/[a-z0-9\-]+?\.([a-z0-9\-]+\.)*[a-z]+\/.*?\.(gif|jpg|png)$)#is", $user_avatar_remoteurl) )
{
$avatar_sql = ", user_avatar = '" . str_replace("\'", "''", $user_avatar_remoteurl) . "', user_avatar_type = " . USER_AVATAR_REMOTE;
}