Zeile 1496 | Zeile 1496 |
---|
$mybb->input['avatarurl'] = preg_replace("#script:#i", "", $mybb->input['avatarurl']); $mybb->input['avatarurl'] = htmlspecialchars($mybb->input['avatarurl']); $ext = getextention($mybb->input['avatarurl']);
|
$mybb->input['avatarurl'] = preg_replace("#script:#i", "", $mybb->input['avatarurl']); $mybb->input['avatarurl'] = htmlspecialchars($mybb->input['avatarurl']); $ext = getextention($mybb->input['avatarurl']);
|
if(preg_match("#gif|jpg|jpeg|jpe|bmp|png#i", $ext) && $mybb->settings['maxavatardims'] != "")
| list($width, $height, $type) = @getimagesize($mybb->input['avatarurl']);
if(!$type) { error($lang->error_invalidavatarurl); }
if($width && $height && $mybb->settings['maxavatardims'] != "")
|
{
|
{
|
list($width, $height) = @getimagesize($mybb->input['avatarurl']);
| |
list($maxwidth, $maxheight) = explode("x", $mybb->settings['maxavatardims']); if(($maxwidth && $width > $maxwidth) || ($maxheight && $height > $maxheight)) {
| list($maxwidth, $maxheight) = explode("x", $mybb->settings['maxavatardims']); if(($maxwidth && $width > $maxwidth) || ($maxheight && $height > $maxheight)) {
|