Commit 653448d0 authored by Cliff Woolley's avatar Cliff Woolley
Browse files

Fixed an error in ap_ssi_get_tag_and_value(). It was not placing the

null terminator in the right spot for the tag_val if the value contained
backslashes.  This caused #if, #elif, and #else expressions with backslashes
to be incorrectly evaluated.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89980 13f79535-47bb-0310-9956-ffa450edef68
parent f37a8c70
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
Changes with Apache 2.0.23-dev

  *) Fixed an error in mod_include's directive parsing routines which
     caused #if, #elif, and #else expressions containing backslashes
     to be improperly evaluated.  [Cliff Woolley]

  *) Introduced new mod_autoindex IndexOptions flags; SuppressIcon to 
     drop the icon column, SuppressRules to drop the <hr> elements, 
     and HTMLTable to create rudimentary HTML table listings (implies 
+2 −2
Original line number Diff line number Diff line
@@ -593,8 +593,8 @@ static void ap_ssi_get_tag_and_value(include_ctx_t *ctx, char **tag,
        }
    }
    
    *c++ = '\0'; /* Overwrites delimiter (term or WS) with NULL. */
    ctx->curr_tag_pos = c;
    *(c-shift_val) = '\0'; /* Overwrites delimiter (term or WS) with NULL. */
    ctx->curr_tag_pos = ++c;
    if (dodecode) {
        decodehtml(*tag_val);
    }