[ticket/9170] Unable to get image size in img bbcode when URL has multiple parameters.

Since we htmlspecialchars() all input we have to htmlspecialchars_decode() before passing the URL along to getimagesize().

PHPBB3-9170
This commit is contained in:
Andreas Fischer 2010-04-21 20:48:38 +02:00 committed by Nils Adermann
parent cb3cf71805
commit abacc2d07d

View file

@ -300,7 +300,7 @@ class bbcode_firstpass extends bbcode
if ($config['max_' . $this->mode . '_img_height'] || $config['max_' . $this->mode . '_img_width']) if ($config['max_' . $this->mode . '_img_height'] || $config['max_' . $this->mode . '_img_width'])
{ {
$stats = @getimagesize($in); $stats = @getimagesize(htmlspecialchars_decode($in));
if ($stats === false) if ($stats === false)
{ {