Merge pull request #2135 from acelaya-forks/feature/non-utf8-titles

Convert encoding of resolved titles based on page encoding
This commit is contained in:
Alejandro Celaya
2024-05-22 18:14:56 +02:00
parent c855f011d1
commit fb4fecf411
5 changed files with 29 additions and 14 deletions

View File

@@ -12,7 +12,6 @@ const MIN_SHORT_CODES_LENGTH = 4;
const DEFAULT_REDIRECT_STATUS_CODE = RedirectStatus::STATUS_302;
const DEFAULT_REDIRECT_CACHE_LIFETIME = 30;
const LOCAL_LOCK_FACTORY = 'Shlinkio\Shlink\LocalLockFactory';
const TITLE_TAG_VALUE = '/<title[^>]*>(.*?)<\/title>/i'; // Matches the value inside a html title tag
const LOOSE_URI_MATCHER = '/(.+)\:(.+)/i'; // Matches anything starting with a schema.
const DEFAULT_QR_CODE_SIZE = 300;
const DEFAULT_QR_CODE_MARGIN = 0;