aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-11-15 20:44:13 -0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-11-15 20:44:13 -0200
commitf31e60aa815cc38f36fee4ea664efbd631329172 (patch)
treed2ed19a5845a36d3428e40a1f4c9a00222399fa3 /src
parent19592a65f3e5f6600175271e4499281e66c07976 (diff)
downloadblogc-f31e60aa815cc38f36fee4ea664efbd631329172.tar.gz
blogc-f31e60aa815cc38f36fee4ea664efbd631329172.tar.bz2
blogc-f31e60aa815cc38f36fee4ea664efbd631329172.zip
content-parser: fixed multiple directive calls in same source
Diffstat (limited to 'src')
-rw-r--r--src/content-parser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/content-parser.c b/src/content-parser.c
index a9ab9af..8bdd861 100644
--- a/src/content-parser.c
+++ b/src/content-parser.c
@@ -1043,6 +1043,8 @@ hr:
goto para;
if (c == ' ' || c == '\t')
break;
+ if (c == '\n' || c == '\r')
+ goto param_end;
prefix = b_strndup(src + start2, current - start2);
state = CONTENT_DIRECTIVE_PARAM_PREFIX;
current--;