You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
* Open group URL regex fixes - Capital letters in room tokens were not being accepted (it eventually gets lower-cased internally, which works fine, but that happens *after* the URL is tested for acceptability). - `-` in room was not being allowed (it is and always has been on SOGS, session-android, and session-ios). - single-letter room ids are valid, but only 2+ letter ids were being accepted. - complete URL regex wasn't anchored so something like `garbagehttps://example.com/room?public_key=<64hex>moregarbage` was being accepted in the GUI input (it fails later when other code tries to parse it as a URL). - removed `m` modifier from open group regex: without anchors it wasn't doing anything anyway, but *with* anchors it would still allow leading/trailing garbage if delineated by newlines. - public key regex was accepting g-z letters, and not accepting A-F. - various regex cleanups: - use non-capture groups (?:...) rather than capturing groups (...) - avoid repetition in host segment matching - tightened up host pattern matching a bit: - DNS host segments have a max length of 63 - Limit port max length to 5, and disallow starting with 0 * Show an error when the open group URL is invalid It's quite disconcerting when you have a bad open group URL and try to add it and the join button just "doesn't work" without any feedback at all. Fix it to show an error message. (There is already an i18n entry for this because this same message is thrown if the URL can't be parsed later on). |
3 years ago | |
---|---|---|
.. | ||
attachments | ||
components | 3 years ago | |
data | 3 years ago | |
fileserver | 4 years ago | |
hooks | 3 years ago | |
interactions | 3 years ago | |
models | 3 years ago | |
notifications | ||
opengroup | 3 years ago | |
protobuf | ||
pushnotification | 4 years ago | |
receiver | 3 years ago | |
session | 3 years ago | |
shims | ||
state | 3 years ago | |
test | 3 years ago | |
test-integration | 3 years ago | |
types | 3 years ago | |
updater | ||
util | 3 years ago | |
OS.ts | ||
ip2country.d.ts | ||
mic-recorder-to-mp3.d.ts | ||
window.d.ts | 3 years ago |