fix(#1289): tighten share-link parsing from review
Three gaps found in review: - A link in brackets, "(meshcore://...)", took the closing bracket with it and was reported as invalid. The bracket is now left out unless the link opened one itself. - The legacy advert form had no upper length, so a huge link from another app was decoded in full. An advert fits in one radio packet, so anything past 255 bytes is refused. - A channel link with a blank name and a secret was accepted, and would add a channel with no visible name. It is refused. Regression tests, each failing against the code before this commit: - meshcore_linkifier_test: a closing bracket is left out of the link. - link_router_test: a 256-byte advert link is refused. - channel_share_uri_test: a blank name is refused even with a secret. Epic: #1285 Feature: #1280 Agent: StormyElk (session 088ce922)pull/1308/head
parent
16a1e62f57
commit
22815ee404
Loading…
Reference in new issue