Use valinor to validate and map short URL redirect rules

This commit is contained in:
Alejandro Celaya
2026-05-04 17:57:34 +02:00
parent c49bf7ebc7
commit 878bfbcd88
14 changed files with 147 additions and 358 deletions
-3
View File
@@ -16,9 +16,6 @@ const LOCAL_LOCK_FACTORY = 'Shlinkio\Shlink\LocalLockFactory';
const IP_ADDRESS_REQUEST_ATTRIBUTE = 'remote_address';
const REDIRECT_URL_REQUEST_ATTRIBUTE = 'redirect_url';
/** @deprecated */
const LOOSE_URI_MATCHER = '/(.+)\:(.+)/i'; // Matches anything starting with a schema.
/**
* List of ISO 3166-1 alpha-2 two-letter country codes https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
*/