diff options
author | the_systech <the_systech@users.sourceforge.net> | 2002-02-19 16:30:03 +0000 |
---|---|---|
committer | the_systech <the_systech@users.sourceforge.net> | 2002-02-19 16:30:03 +0000 |
commit | d2dff5d51fafead0781a77af91499d1b689efcfa (patch) | |
tree | e8b61577bf45d131afb13a2147c70b0073576c7f | |
parent | 1bbf53c4828a4b18d50dc1d4f51f43d6d2bb5df8 (diff) | |
download | forums-d2dff5d51fafead0781a77af91499d1b689efcfa.tar forums-d2dff5d51fafead0781a77af91499d1b689efcfa.tar.gz forums-d2dff5d51fafead0781a77af91499d1b689efcfa.tar.bz2 forums-d2dff5d51fafead0781a77af91499d1b689efcfa.tar.xz forums-d2dff5d51fafead0781a77af91499d1b689efcfa.zip |
Fix for bug #518972 Remote Avatar URI's with Port numbers
git-svn-id: file:///svn/phpbb/trunk@2196 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/profile.php | 4 |
1 files 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 +?> |