mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 08:17:47 +02:00
[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:
committed by
Nils Adermann
parent
cb3cf71805
commit
abacc2d07d
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user