Merge pull request #1943 from bolt/fix/allow-x

Better way to allow `x` in thumbnail URLs alongside `×`
This commit is contained in:
Ivo Valchev
2020-10-06 09:29:19 +02:00
committed by GitHub

View File

@@ -134,7 +134,7 @@ class ImageController
private function parseParameters(string $paramString): void
{
$raw = explode('×', $paramString);
$raw = explode('×', preg_replace('/([0-9])(x)([0-9])/', '\1×\3', $paramString));
$this->parameters = [
'w' => is_numeric($raw[0]) ? (int) $raw[0] : 400,