From: Brian Pane Date: Thu, 28 Mar 2002 01:19:58 +0000 (+0000) Subject: Don't walk past the end of the tag in ap_ssi_get_tag_and_value() X-Git-Tag: 2.0.34~82 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=832f28d371cdf0825b3ef941145439e7e9990c86;p=thirdparty%2Fapache%2Fhttpd.git Don't walk past the end of the tag in ap_ssi_get_tag_and_value() Discovered by: Cliff Woolley git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94251 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index 2e90e18ade0..c17ca823f61 100644 --- a/modules/filters/mod_include.c +++ b/modules/filters/mod_include.c @@ -957,7 +957,10 @@ static void ap_ssi_get_tag_and_value(include_ctx_t *ctx, char **tag, } *(c-shift_val) = '\0'; /* Overwrites delimiter (term or WS) with NULL. */ - ctx->curr_tag_pos = ++c; + if (*c) { + ++c; + } + ctx->curr_tag_pos = c; if (dodecode) { decodehtml(*tag_val); }