allow '{' and '}' in html urls

This commit is contained in:
Matthew Scragg 2014-09-10 10:53:22 -05:00
parent ec5c840f84
commit 40292454da
2 changed files with 5 additions and 0 deletions

View file

@ -109,6 +109,10 @@ class Wiki():
# Handlebars partial ">"
content = re.sub(r"\{\{>(.*?)\}\}", r'{{>\1}}', content)
# Handlebars, allow {{}} inside HTML links
content = content.replace("%7B", "{")
content = content.replace("%7D", "}")
content = re.sub(r"```(.*?)```", unescape_repl, content, flags=re.DOTALL)
cname = to_canonical(name)

View file

@ -71,6 +71,7 @@ var MDR = {
} catch(e) {
return this.md;
}
if (sanitize) {
// Causes some problems with inline styles
html = html_sanitize(html, function(url) {