aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2010-04-21 20:48:38 +0200
committerNils Adermann <naderman@naderman.de>2010-05-02 23:43:32 +0200
commitabacc2d07d1f62db3aaebff1d37099c6511d0595 (patch)
tree79487a7d413c05275f40a23037baba42d134c8ff /phpBB
parentcb3cf71805246bc2ce3b386a5d70e76dbe1dff0e (diff)
downloadforums-abacc2d07d1f62db3aaebff1d37099c6511d0595.tar
forums-abacc2d07d1f62db3aaebff1d37099c6511d0595.tar.gz
forums-abacc2d07d1f62db3aaebff1d37099c6511d0595.tar.bz2
forums-abacc2d07d1f62db3aaebff1d37099c6511d0595.tar.xz
forums-abacc2d07d1f62db3aaebff1d37099c6511d0595.zip
[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
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/message_parser.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php
index 50aad8588a..952b55cc8c 100644
--- a/phpBB/includes/message_parser.php
+++ b/phpBB/includes/message_parser.php
@@ -300,7 +300,7 @@ class bbcode_firstpass extends bbcode
if ($config['max_' . $this->mode . '_img_height'] || $config['max_' . $this->mode . '_img_width'])
{
- $stats = @getimagesize($in);
+ $stats = @getimagesize(htmlspecialchars_decode($in));
if ($stats === false)
{