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

(-)./modules/metadata/mod_expires.c.orig (+4 lines)
Lines 321-326 Link Here
321
    const char *check;
321
    const char *check;
322
322
323
    check = ap_strrchr_c(mime, '/');
323
    check = ap_strrchr_c(mime, '/');
324
    /* If check == NULL, we have to return an error to avoid a segfault */
325
    if (check == NULL) {
326
      return "Invalid mimetype: should contain a slash";
327
    }
324
    if ((strlen(++check) == 1) && (*check == '*')) {
328
    if ((strlen(++check) == 1) && (*check == '*')) {
325
        dir_config->wildcards = 1;
329
        dir_config->wildcards = 1;
326
    }
330
    }

Return to bug 43213