View | Details | Raw Unified | Return to bug 52656
Collapse All | Expand All

(-)modules/proxy/mod_proxy_http.c (-1 / +1 lines)
Lines 189-195 static int clear_conn_headers(void *data, const ch Link Here
189
        while (*next && !apr_isspace(*next) && (*next != ',')) {
189
        while (*next && !apr_isspace(*next) && (*next != ',')) {
190
            ++next;
190
            ++next;
191
        }
191
        }
192
        while (*next && (apr_isspace(*next) || (*next == ','))) {
192
        while (apr_isspace(*next) || (*next == ',')) {
193
            *next++ = '\0';
193
            *next++ = '\0';
194
        }
194
        }
195
        apr_table_unset(headers, name);
195
        apr_table_unset(headers, name);
(-)modules/cache/mod_cache_disk.c (-1 / +1 lines)
Lines 825-831 static apr_status_t read_table(cache_handle_t *han Link Here
825
        }
825
        }
826
826
827
        *l++ = '\0';
827
        *l++ = '\0';
828
        while (*l && apr_isspace(*l)) {
828
        while (apr_isspace(*l)) {
829
            ++l;
829
            ++l;
830
        }
830
        }
831
831
(-)modules/cache/mod_disk_cache.c (-1 / +1 lines)
Lines 748-754 static apr_status_t read_table(cache_handle_t *han Link Here
748
        }
748
        }
749
749
750
        *l++ = '\0';
750
        *l++ = '\0';
751
        while (*l && apr_isspace(*l)) {
751
        while (apr_isspace(*l)) {
752
            ++l;
752
            ++l;
753
        }
753
        }
754
754
(-)modules/cache/cache_storage.c (-1 / +1 lines)
Lines 263-269 int cache_select(cache_request_rec *cache, request Link Here
263
                /* isolate header name */
263
                /* isolate header name */
264
                while (*vary && !apr_isspace(*vary) && (*vary != ','))
264
                while (*vary && !apr_isspace(*vary) && (*vary != ','))
265
                    ++vary;
265
                    ++vary;
266
                while (*vary && (apr_isspace(*vary) || (*vary == ','))) {
266
                while (apr_isspace(*vary) || (*vary == ',')) {
267
                    *vary = '\0';
267
                    *vary = '\0';
268
                    ++vary;
268
                    ++vary;
269
                }
269
                }
(-)modules/mappers/mod_rewrite.c (-1 / +1 lines)
Lines 1253-1259 static char *lookup_map_txtfile(request_rec *r, co Link Here
1253
        }
1253
        }
1254
1254
1255
        /* jump to the value */
1255
        /* jump to the value */
1256
        while (*p && apr_isspace(*p)) {
1256
        while (apr_isspace(*p)) {
1257
            ++p;
1257
            ++p;
1258
        }
1258
        }
1259
1259
(-)modules/mappers/mod_negotiation.c (-4 / +4 lines)
Lines 366-372 static float atoq(const char *string) Link Here
366
        return  1.0f;
366
        return  1.0f;
367
    }
367
    }
368
368
369
    while (*string && apr_isspace(*string)) {
369
    while (apr_isspace(*string)) {
370
        ++string;
370
        ++string;
371
    }
371
    }
372
372
Lines 464-470 static const char *get_entry(apr_pool_t *p, accept Link Here
464
        }
464
        }
465
465
466
        *cp++ = '\0';           /* Delimit var */
466
        *cp++ = '\0';           /* Delimit var */
467
        while (*cp && (apr_isspace(*cp) || *cp == '=')) {
467
        while (apr_isspace(*cp) || *cp == '=') {
468
            ++cp;
468
            ++cp;
469
        }
469
        }
470
470
Lines 757-763 static enum header_state get_header_line(char *buf Link Here
757
757
758
    /* If blank, just return it --- this ends information on this variant */
758
    /* If blank, just return it --- this ends information on this variant */
759
759
760
    for (cp = buffer; (*cp && apr_isspace(*cp)); ++cp) {
760
    for (cp = buffer; apr_isspace(*cp); ++cp) {
761
        continue;
761
        continue;
762
    }
762
    }
763
763
Lines 924-930 static char *lcase_header_name_return_body(char *h Link Here
924
924
925
    do {
925
    do {
926
        ++cp;
926
        ++cp;
927
    } while (*cp && apr_isspace(*cp));
927
    } while (apr_isspace(*cp));
928
928
929
    if (!*cp) {
929
    if (!*cp) {
930
        ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(00682)
930
        ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(00682)
(-)modules/mappers/mod_imagemap.c (-1 / +1 lines)
Lines 676-682 static int imap_handler_internal(request_rec *r) Link Here
676
        if (!*string_pos) {   /* need at least two fields */
676
        if (!*string_pos) {   /* need at least two fields */
677
            goto need_2_fields;
677
            goto need_2_fields;
678
        }
678
        }
679
        while(*string_pos && apr_isspace(*string_pos)) { /* past whitespace */
679
        while(apr_isspace(*string_pos)) { /* past whitespace */
680
            ++string_pos;
680
            ++string_pos;
681
        }
681
        }
682
682
(-)modules/filters/mod_proxy_html.c (-1 / +1 lines)
Lines 668-674 static meta *metafix(request_rec *r, const char *b Link Here
668
            if (p != NULL) {
668
            if (p != NULL) {
669
                while (*p) {
669
                while (*p) {
670
                    p += 7;
670
                    p += 7;
671
                    while (*p && apr_isspace(*p))
671
                    while (apr_isspace(*p))
672
                        ++p;
672
                        ++p;
673
                    if (*p != '=')
673
                    if (*p != '=')
674
                        continue;
674
                        continue;
(-)modules/metadata/mod_cern_meta.c (-1 / +1 lines)
Lines 237-243 static int scan_meta_file(request_rec *r, apr_file Link Here
237
        }
237
        }
238
238
239
        *l++ = '\0';
239
        *l++ = '\0';
240
        while (*l && apr_isspace(*l))
240
        while (apr_isspace(*l))
241
            ++l;
241
            ++l;
242
242
243
        if (!strcasecmp(w, "Content-type")) {
243
        if (!strcasecmp(w, "Content-type")) {
(-)modules/metadata/mod_headers.c (-1 / +1 lines)
Lines 700-706 static int do_headers_fixup(request_rec *r, apr_ta Link Here
700
                while (*val) {
700
                while (*val) {
701
                    const char *tok_start;
701
                    const char *tok_start;
702
702
703
                    while (*val && apr_isspace(*val))
703
                    while (apr_isspace(*val))
704
                        ++val;
704
                        ++val;
705
705
706
                    tok_start = val;
706
                    tok_start = val;
(-)modules/metadata/mod_mime_magic.c (-1 / +1 lines)
Lines 957-963 static int apprentice(server_rec *s, apr_pool_t *p Link Here
957
957
958
        /* skip leading whitespace */
958
        /* skip leading whitespace */
959
        ws_offset = 0;
959
        ws_offset = 0;
960
        while (line[ws_offset] && apr_isspace(line[ws_offset])) {
960
        while (apr_isspace(line[ws_offset])) {
961
            ws_offset++;
961
            ws_offset++;
962
        }
962
        }
963
963
(-)server/util.c (-4 / +4 lines)
Lines 778-784 AP_DECLARE(char *) ap_getword_conf(apr_pool_t *p, Link Here
778
    char *res;
778
    char *res;
779
    char quote;
779
    char quote;
780
780
781
    while (*str && apr_isspace(*str))
781
    while (apr_isspace(*str))
782
        ++str;
782
        ++str;
783
783
784
    if (!*str) {
784
    if (!*str) {
Lines 810-816 AP_DECLARE(char *) ap_getword_conf(apr_pool_t *p, Link Here
810
        res = substring_conf(p, str, strend - str, 0);
810
        res = substring_conf(p, str, strend - str, 0);
811
    }
811
    }
812
812
813
    while (*strend && apr_isspace(*strend))
813
    while (apr_isspace(*strend))
814
        ++strend;
814
        ++strend;
815
    *line = strend;
815
    *line = strend;
816
    return res;
816
    return res;
Lines 1389-1395 AP_DECLARE(char *) ap_get_token(apr_pool_t *p, con Link Here
1389
1389
1390
    /* Find first non-white byte */
1390
    /* Find first non-white byte */
1391
1391
1392
    while (*ptr && apr_isspace(*ptr))
1392
    while (apr_isspace(*ptr))
1393
        ++ptr;
1393
        ++ptr;
1394
1394
1395
    tok_start = ptr;
1395
    tok_start = ptr;
Lines 1411-1417 AP_DECLARE(char *) ap_get_token(apr_pool_t *p, con Link Here
1411
1411
1412
    /* Advance accept_line pointer to the next non-white byte */
1412
    /* Advance accept_line pointer to the next non-white byte */
1413
1413
1414
    while (*ptr && apr_isspace(*ptr))
1414
    while (apr_isspace(*ptr))
1415
        ++ptr;
1415
        ++ptr;
1416
1416
1417
    *accept_line = ptr;
1417
    *accept_line = ptr;
(-)server/util_script.c (-1 / +1 lines)
Lines 565-571 AP_DECLARE(int) ap_scan_script_header_err_core_ex( Link Here
565
        }
565
        }
566
566
567
        *l++ = '\0';
567
        *l++ = '\0';
568
        while (*l && apr_isspace(*l)) {
568
        while (apr_isspace(*l)) {
569
            ++l;
569
            ++l;
570
        }
570
        }
571
571
(-)support/httxt2dbm.c (-1 / +1 lines)
Lines 138-144 static apr_status_t to_dbm(apr_dbm_t *dbm, apr_fil Link Here
138
        dbmkey.dptr = apr_pstrmemdup(p, line,  c - line);
138
        dbmkey.dptr = apr_pstrmemdup(p, line,  c - line);
139
        dbmkey.dsize = (c - line);
139
        dbmkey.dsize = (c - line);
140
140
141
        while (*c && apr_isspace(*c)) {
141
        while (apr_isspace(*c)) {
142
            ++c;
142
            ++c;
143
        }
143
        }
144
144

Return to bug 52656