From d2dff5d51fafead0781a77af91499d1b689efcfa Mon Sep 17 00:00:00 2001 From: the_systech Date: Tue, 19 Feb 2002 16:30:03 +0000 Subject: [PATCH] Fix for bug #518972 Remote Avatar URI's with Port numbers git-svn-id: file:///svn/phpbb/trunk@2196 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/profile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/profile.php b/phpBB/profile.php index 1c2c0b581d..c656e29f96 100644 --- a/phpBB/profile.php +++ b/phpBB/profile.php @@ -1004,7 +1004,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|jpeg|png)$)#is", $user_avatar_remoteurl) ) + if( preg_match("#^(http:\/\/[a-z0-9\-]+?\.([a-z0-9\-]+\.)*[a-z]+(:[0-9]+)*\/.*?\.(gif|jpg|jpeg|png)$)#is", $user_avatar_remoteurl) ) { $avatar_sql = ", user_avatar = '" . str_replace("\'", "''", $user_avatar_remoteurl) . "', user_avatar_type = " . USER_AVATAR_REMOTE; } @@ -2036,4 +2036,4 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) } } -?> \ No newline at end of file +?>