mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 15:23:12 +08:00
Replaced colon by hyphen as the ordering field-dir separator as it's a valid URL character
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user