aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2017-02-15 00:07:28 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2017-02-15 00:07:28 +0100
commitbc23293bb178b6abcafa0f67d432cbff6ac3c861 (patch)
tree2f68f1abf87c2a326be2a21e275252bb8f565621 /src
parent80017f034146b50fdc441c96636f1098adf7037e (diff)
downloadblogc-bc23293bb178b6abcafa0f67d432cbff6ac3c861.tar.gz
blogc-bc23293bb178b6abcafa0f67d432cbff6ac3c861.tar.bz2
blogc-bc23293bb178b6abcafa0f67d432cbff6ac3c861.zip
content-parser: html-encode pre-defined title. updated man pages
Diffstat (limited to 'src')
-rw-r--r--src/blogc/content-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blogc/content-parser.c b/src/blogc/content-parser.c
index 415e5ee..86aa74b 100644
--- a/src/blogc/content-parser.c
+++ b/src/blogc/content-parser.c
@@ -836,7 +836,7 @@ blogc_content_parse(const char *src, size_t *end_excerpt, char **title,
(real_end != 0 ? real_end : current);
tmp = bc_strndup(src + start, end - start);
if (title != NULL && *title == NULL)
- *title = bc_strdup(tmp);
+ *title = blogc_htmlentities(tmp);
parsed = blogc_content_parse_inline(tmp);
slug = blogc_slugify(tmp);
if (slug == NULL)