diff options
author | Ben Bridle <bridle.benjamin@gmail.com> | 2025-02-11 12:13:40 +1300 |
---|---|---|
committer | Ben Bridle <bridle.benjamin@gmail.com> | 2025-02-11 12:14:31 +1300 |
commit | 4ce5f34163756f39fefa5114c87922999e9d6320 (patch) | |
tree | 6cd99a9d2c116e2db609996dfac57adb5e38a056 /.gitignore | |
parent | 34156a8738eb99d71f69a7334ab2eced52dc7af7 (diff) | |
download | toaster-4ce5f34163756f39fefa5114c87922999e9d6320.zip |
URL-encode special characters in unsanitized paths
Unlike for internal links, external links are never sanitized. When an
external link contained an apostrophe or a double-quote character, it
would prematurely terminate the href property of the containing <a> tag
and break the link.
Paths in internal and external links are now passed through a new
url_encode function, which replaces quote characters with the
percent-encoded equivalent.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions