diff options
author | Nathan Angelacos <nangel@alpinelinux.org> | 2007-11-21 20:17:51 +0000 |
---|---|---|
committer | Nathan Angelacos <nangel@alpinelinux.org> | 2007-11-21 20:17:51 +0000 |
commit | 7255680e130274fbb31b61a0ebc916767a773eab (patch) | |
tree | 5ea06b38486afa45f78453321b4d3633496b5686 /src | |
parent | d57abcf87f74fe83c2add23b5b38530960b854d5 (diff) | |
download | haserl-7255680e130274fbb31b61a0ebc916767a773eab.tar.bz2 haserl-7255680e130274fbb31b61a0ebc916767a773eab.tar.xz |
Scott's fix for bare html before a <% comment tag
Added TODO item to split FORM into COOKIE, GET, POST
Diffstat (limited to 'src')
-rw-r--r-- | src/h_script.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/h_script.c b/src/h_script.c index 541e379..218792d 100644 --- a/src/h_script.c +++ b/src/h_script.c @@ -253,6 +253,12 @@ build_token_list (script_t * scriptbuf, token_t * tokenlist) /* if this is a comment tag, the end is at the end of the comment */ if ((start) && (memcmp (start + 2, g_tag[COMMENT], 1) == 0)) { + /* save any bare html before the comment */ + curtoken = push_token_on_list (curtoken, scriptbuf, curpos, + start - curpos); + if (firsttoken == NULL) + firsttoken = curtoken; + /* push start of token to end of token */ end = skip_comment (start, endpos); if (end) { |