mirror of
https://github.com/jbcr/core.git
synced 2026-03-30 04:42:25 +02:00
Merge pull request #1943 from bolt/fix/allow-x
Better way to allow `x` in thumbnail URLs alongside `×`
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user