mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Fix handling of trailing '/' in captcha urls
This commit is contained in:
@@ -119,6 +119,17 @@ describe('signalRoutes', () => {
|
||||
check(`signalcaptcha://${captchaId}`, result);
|
||||
});
|
||||
|
||||
it('captcha with a trailing slash', () => {
|
||||
const captchaId =
|
||||
'signal-hcaptcha.Foo-bAr_baz.challenge.fOo-bAR_baZ.fOO-BaR_baz';
|
||||
const result: ParsedSignalRoute = {
|
||||
key: 'captcha',
|
||||
args: { captchaId },
|
||||
};
|
||||
const check = createCheck({ hasWebUrl: false });
|
||||
check(`signalcaptcha://${captchaId}/`, result);
|
||||
});
|
||||
|
||||
it('linkCall', () => {
|
||||
const result: ParsedSignalRoute = {
|
||||
key: 'linkCall',
|
||||
|
||||
Reference in New Issue
Block a user