allow '{' and '}' in html urls

Cette révision appartient à :
Matthew Scragg 2014-09-10 10:53:22 -05:00
Parent ec5c840f84
révision 40292454da
2 fichiers modifiés avec 5 ajouts et 0 suppressions

Voir le fichier

@ -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)

Voir le fichier

@ -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) {