]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commit
preprocess: Escape most ASCII punctuation in error messages
authorSimon McVittie <smcv@debian.org>
Wed, 28 Feb 2018 09:40:45 +0000 (09:40 +0000)
committerSimon McVittie <smcv@debian.org>
Wed, 28 Feb 2018 09:55:53 +0000 (09:55 +0000)
commit0e5c8ae806283d31bcfaf63f5af361f97dbe91f0
treecc1092757943956531dfc61a274245e3ba58ca4c
parent4d355918f0ee478c63084661e617ba44ddc360bb
preprocess: Escape most ASCII punctuation in error messages

This is a minimal version of what we should in principle do here,
which is to escape the error message in whatever way is correct for
embedding plain text in the surrounding wiki markup language.
This implementation approximates that by assuming that HTML entities,
alphanumerics and common punctuation characters are passed through the
markup language unaltered, but punctuation characters might be
misinterpreted.

Signed-off-by: Simon McVittie <smcv@debian.org>
IkiWiki.pm