summaryrefslogtreecommitdiff
path: root/phpBB
diff options
context:
space:
mode:
authorGraham Eames <grahamje@users.sourceforge.net>2006-05-23 21:09:27 +0000
committerGraham Eames <grahamje@users.sourceforge.net>2006-05-23 21:09:27 +0000
commit0821474a5c6413037e3313fdade4eea6780e1624 (patch)
treea9820e16a44be57675f0b0e9f0d0a43a7100da23 /phpBB
parentSome changes to the way we filter short search terms since it seemed to not c... (diff)
downloadphpbb-0821474a5c6413037e3313fdade4eea6780e1624.tar.gz
phpbb-0821474a5c6413037e3313fdade4eea6780e1624.tar.bz2
phpbb-0821474a5c6413037e3313fdade4eea6780e1624.zip
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
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/usercp_avatar.php2
1 files changed, 1 insertions, 1 deletions
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]) )
{