summaryrefslogtreecommitdiff
path: root/src/html/houdini_html_e.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2014-09-04 17:42:12 +0200
committerVicent Marti <tanoku@gmail.com>2014-09-09 03:39:15 +0200
commit9830d3a05a374a0d05676301bd4065917b59ad53 (patch)
treec847941aa3471be70e8261eff34e8609d4f43114 /src/html/houdini_html_e.c
parent45c1d9fadb3e8aab4a01bb27a4e2ece379902d1a (diff)
430/11
Diffstat (limited to 'src/html/houdini_html_e.c')
-rw-r--r--src/html/houdini_html_e.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/html/houdini_html_e.c b/src/html/houdini_html_e.c
index 5cdd3dd..95b6c41 100644
--- a/src/html/houdini_html_e.c
+++ b/src/html/houdini_html_e.c
@@ -62,8 +62,8 @@ houdini_escape_html0(gh_buf *ob, const uint8_t *src, size_t size, int secure)
break;
/* The forward slash is only escaped in secure mode */
- if (src[i] == '/' && !secure) {
- gh_buf_putc(ob, '/');
+ if ((src[i] == '/' || src[i] == '\'') && !secure) {
+ gh_buf_putc(ob, src[i]);
} else {
gh_buf_puts(ob, HTML_ESCAPES[esc]);
}