Fix for image URLs not being fully URL encoded #1622

This commit is contained in:
Andy Miller 2017-09-14 17:21:53 -06:00
parent ffd61065ac
commit 7adaf536f1
No known key found for this signature in database
GPG Key ID: E82B8D0EAB94EFB9
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
* Implemented `Composer\CaBundle` for SSL Certs [#1241](https://github.com/getgrav/grav/issues/1241)
* Refactored the Assets sorting logic
1. [](#bugfix)
* Fixed issue with Image query string not being fully URL encoded [#1622](https://github.com/getgrav/grav/issues/1622)
* Fixed `Page::summary()` when using delimiter and multibyte UTF8 Characters [#1644](https://github.com/getgrav/grav/issues/1644)
# v1.3.3

View File

@ -490,7 +490,7 @@ class Medium extends Data implements RenderableInterface
{
$qs = $method;
if (count($args) > 1 || (count($args) == 1 && !empty($args[0]))) {
$qs .= '=' . implode(',', array_map(function ($a) { return urlencode($a); }, $args));
$qs .= '=' . implode(',', array_map(function ($a) { return rawurlencode($a); }, $args));
}
if (!empty($qs)) {