From 239fa0095765c042964e48b2900b6e11e93e2d68 Mon Sep 17 00:00:00 2001 From: ivanr Date: Fri, 17 Aug 2007 16:01:24 +0000 Subject: [PATCH] Fix silly errors, typos. --- apache2/msc_multipart.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apache2/msc_multipart.c b/apache2/msc_multipart.c index bd395cf6..2ec983da 100644 --- a/apache2/msc_multipart.c +++ b/apache2/msc_multipart.c @@ -221,7 +221,7 @@ static int multipart_process_part_header(modsec_rec *msr, char **error_msg) { if (msr->mpd->mpp->filename != NULL) { /* Some parsers use crude methods to extract the name and filename * values from the C-D header. We need to check for the case where they - * don't understand and C-D we do. + * don't understand C-D but we do. */ if (strstr(header_value, "filename=") == NULL) { *error_msg = apr_psprintf(msr->mp, "Multipart: Invalid Content-Disposition header (filename)."); @@ -579,7 +579,7 @@ static int multipart_boundary_characters_valid(char *boundary) { p++; } - return 0; + return 1; } static int multipart_count_boundary_params(apr_pool_t *mp, const char *header_value) { @@ -764,7 +764,7 @@ int multipart_process_chunk(modsec_rec *msr, const char *buf, if (size == 0) return 1; - if (msr->mpd->seen_data == 0) msr->mpd->seen_data = 1; + msr->mpd->seen_data = 1; if (msr->mpd->is_complete) { msr->mpd->flag_data_before = 1;