Replaced colon by hyphen as the ordering field-dir separator as it's a valid URL character

This commit is contained in:
Alejandro Celaya
2020-09-21 22:03:43 +02:00
parent 25fbbee883
commit be71a6eeb4
3 changed files with 12 additions and 8 deletions

View File

@@ -50,7 +50,7 @@ final class ShortUrlsOrdering
}
if (! $isArray) {
$parts = explode(':', $orderBy);
$parts = explode('-', $orderBy);
$this->orderField = $parts[0];
$this->orderDirection = $parts[1] ?? self::DEFAULT_ORDER_DIRECTION;
} else {