From a63a8be320f64a435fe2aac552cd01fb98e5133b Mon Sep 17 00:00:00 2001 From: Brian Pane Date: Thu, 28 Mar 2002 01:19:58 +0000 Subject: [PATCH] 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 --- modules/filters/mod_include.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index 2e90e18ade..c17ca823f6 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); } -- 2.50.1