summaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorBen Bridle <bridle.benjamin@gmail.com>2025-02-11 12:13:40 +1300
committerBen Bridle <bridle.benjamin@gmail.com>2025-02-11 12:14:31 +1300
commit4ce5f34163756f39fefa5114c87922999e9d6320 (patch)
tree6cd99a9d2c116e2db609996dfac57adb5e38a056 /.gitignore
parent34156a8738eb99d71f69a7334ab2eced52dc7af7 (diff)
downloadtoaster-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