Allow redis credentials be URL-decoded before passing them to connection

This commit is contained in:
Alejandro Celaya
2023-11-23 11:22:23 +01:00
parent 0511c73cc8
commit df57ca5edb
6 changed files with 9 additions and 4 deletions

View File

@@ -12,7 +12,8 @@ enum DeviceType: string
public static function matchFromUserAgent(string $userAgent): ?self
{
$detect = new MobileDetect(userAgent: $userAgent);
$detect = new MobileDetect();
$detect->setUserAgent($userAgent);
return match (true) {
// $detect->is('iOS') && $detect->isTablet() => self::IOS, // TODO To detect iPad only