zulip/frontend_tests/puppeteer_tests
Alex Vandiver 8dd9b4e812 linkifiers: Loosen regex that validates URLs.
User-supplied custom realm filter has had some sort of regex-based
validation of the format URL since their introduction in
d7e1e4a2c0 -- and this has always been
in addition to the URLValidator.  The URLValidator is the one which
does the security-relevant work of validating that the schema is
reasonable, and that the overall shape of the URL is well-formed.  The
regex has served primarily to arbitrary limit the characters that can
appear in the URL, in the mistaken name of safety.

Adjust the regex, such that its only purpose is to verify that the
usages of `%` characters in the URL are reasonable, and leave the URL
validation to the URLValidator, which can do a far better job.  This
includes broadening the support to include `%%` as an escape
character; this is likely such a niche case as to be unnecessary, but
costs little.

Fixes #16013.
2021-10-22 13:00:20 -07:00
..
admin.ts streams: Split setting for stream creation policy. 2021-10-01 10:26:42 -07:00
compose.ts minor: Correct comment in compose test. 2021-05-04 16:40:43 -07:00
copy-and-paste.ts puppeteer_tests: Remove sequential numbers from test files. 2021-04-01 07:46:13 -07:00
custom-profile.ts puppeteer_tests: Remove sequential numbers from test files. 2021-04-01 07:46:13 -07:00
delete-message.ts puppeteer: Remove waitFors on deletion spinners. 2021-10-03 18:47:42 -07:00
drafts.ts puppeteer: remove test_not_delete_draft_on_sending(). 2021-09-10 10:25:48 -07:00
edit.ts puppeteer: Fix the selector for opening the message action menu. 2021-06-12 09:00:57 -04:00
mention.ts custom_check: Avoid use of assert to avoid confusion with assert.equal. 2021-06-10 09:15:57 -07:00
message-basics.ts populate_db: Use do_create_realm for creating zulip realm. 2021-07-06 17:37:43 -07:00
navigation.ts js: Fix @typescript-eslint/restrict-template-expressions. 2021-09-22 18:06:06 -07:00
realm-creation.ts js: Fix @typescript-eslint/restrict-template-expressions. 2021-09-22 18:06:06 -07:00
realm-linkifier.ts linkifiers: Loosen regex that validates URLs. 2021-10-22 13:00:20 -07:00
realm-playground.ts puppeteer: Fallback to default waitForSelect timeout. 2021-05-24 23:11:41 -07:00
settings.ts puppeteer: Specify container for notification settings tests. 2021-09-16 15:46:41 -07:00
stars.ts puppeteer_tests: Remove sequential numbers from test files. 2021-04-01 07:46:13 -07:00
subscriptions.ts js: Fix @typescript-eslint/no-floating-promises. 2021-09-22 18:06:06 -07:00
user-deactivation.ts confirm_dialog: Rename variables and classes used in templates. 2021-07-14 12:21:24 -07:00
user-status.ts lint: Fix typos found by codespell. 2021-10-19 16:51:13 -07:00