Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix parsing of links containing escape sequences
When formatting links to be displayed in messages, using repeated calls to QString::arg() will interpret '%0' and similar in the URL as a placeholder, resulting in the link not being properly formatted. Depending on the value, this can either result in a broken URL when copied to the clipboard (ricochet-im#403), or the URL being displayed with a label of just '%2' (ricochet-im#372). This cannot be used to mislabel links, and there is no printf-style format vulnerability with QString::arg. There is no security impact.
- Loading branch information