mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
Fix handling of trailing '/' in captcha urls
This commit is contained in:
@@ -347,7 +347,7 @@ export const linkDeviceRoute = _route('linkDevice', {
|
||||
*/
|
||||
export const captchaRoute = _route('captcha', {
|
||||
// needs `(.+)` to capture `.` in hostname
|
||||
patterns: [_pattern('signalcaptcha:', ':captchaId(.+)', '', {})],
|
||||
patterns: [_pattern('signalcaptcha:', ':captchaId(.+)', '{/}?', {})],
|
||||
schema: z.object({
|
||||
captchaId: paramSchema, // opaque
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user