From 466fb013a92dfa209053584ac06d1c5797c34f30 Mon Sep 17 00:00:00 2001 From: Bob den Otter Date: Wed, 27 May 2020 16:28:46 +0200 Subject: [PATCH] =?UTF-8?q?Allow=20x=20as=20well=20as=20=C3=97=20in=20thum?= =?UTF-8?q?bail=20URLs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Controller/ImageController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/ImageController.php b/src/Controller/ImageController.php index 59c34fcbf..cd61bf45f 100644 --- a/src/Controller/ImageController.php +++ b/src/Controller/ImageController.php @@ -136,7 +136,7 @@ private function buildResponse(string $filename): Response private function parseParameters(string $paramString): void { - $raw = explode('×', $paramString); + $raw = explode('×', str_replace('x', '×', $paramString)); $this->parameters = [ 'w' => is_numeric($raw[0]) ? (int) $raw[0] : 400,