From 0821474a5c6413037e3313fdade4eea6780e1624 Mon Sep 17 00:00:00 2001 From: Graham Eames Date: Tue, 23 May 2006 21:09:27 +0000 Subject: [PATCH] Small change to bring this check in line with the other image checks (remote avatars and img tags) git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5962 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/usercp_avatar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/usercp_avatar.php b/phpBB/includes/usercp_avatar.php index 5429856a44..5d49f23882 100644 --- a/phpBB/includes/usercp_avatar.php +++ b/phpBB/includes/usercp_avatar.php @@ -122,7 +122,7 @@ function user_avatar_upload($mode, $avatar_mode, &$current_avatar, &$current_typ $width = $height = 0; $type = ''; - if ( $avatar_mode == 'remote' && preg_match('/^(http:\/\/)?([\w\-\.]+)\:?([0-9]*)\/(.*)$/', $avatar_filename, $url_ary) ) + if ( $avatar_mode == 'remote' && preg_match('/^(http:\/\/)?([\w\-\.]+)\:?([0-9]*)\/([^ \?&=\#\"\n\r\t<]*?(\.(jpg|jpeg|gif|png)))$/', $avatar_filename, $url_ary) ) { if ( empty($url_ary[4]) ) {