mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Fix for bug #518972 Remote Avatar URI's with Port numbers
git-svn-id: file:///svn/phpbb/trunk@2196 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
1bbf53c482
commit
d2dff5d51f
1 changed files with 2 additions and 2 deletions
|
@ -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']) )
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Add table
Reference in a new issue