Skip to content

Commit

Permalink
Merge pull request #1411 from bolt/fix/allow-x-as-well-as-×-in-thumba…
Browse files Browse the repository at this point in the history
…il-URLs

Allow x as well as × in thumbail URLs
  • Loading branch information
bobdenotter committed May 28, 2020
2 parents 23d22ad + 466fb01 commit e35a0ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/ImageController.php
Expand Up @@ -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,
Expand Down

0 comments on commit e35a0ff

Please sign in to comment.