From bf94c5dc73d34b7efc7177b98ff9dcf48c5098f1 Mon Sep 17 00:00:00 2001 From: Exlaso Date: Wed, 4 Jun 2025 12:43:02 +0530 Subject: [PATCH] fix: use safeDecodeURIComponent for location fields in user detection --- src/lib/detect.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/detect.ts b/src/lib/detect.ts index 8712632a..2b1fe01d 100644 --- a/src/lib/detect.ts +++ b/src/lib/detect.ts @@ -11,6 +11,7 @@ import { MOBILE_OS, MOBILE_SCREEN_WIDTH, } from './constants'; +import { safeDecodeURIComponent } from '@/lib/url'; const MAXMIND = 'maxmind'; @@ -146,9 +147,9 @@ export async function getClientInfo(request: Request, payload: Record