Commit cd1ad0e5 authored by Jeff Trawick's avatar Jeff Trawick
Browse files

mod_speling: Stop crashing with certain non-file requests.

(r->filename unset)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@373519 13f79535-47bb-0310-9956-ffa450edef68
parent 1d2c8542
Loading
Loading
Loading
Loading
+2 −0
Changes for CHANGES: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -2,6 +2,8 @@
Changes with Apache 2.3.0
  [Remove entries to the current 2.0 and 2.2 section below, when backported]
  *) mod_speling: Stop crashing with certain non-file requests.  [Jeff Trawick]
  *) mod_proxy_ajp: Support common headers of the AJP protocol in responses.
     PR 38340. [Aleksey Pesternikov <apesternikov yahoo.com>, Ruediger Pluem]
+6 −1
Changes for modules/mappers/mod_speling.c: 6 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -213,7 +213,12 @@ static int check_speling(request_rec *r)
    }

    /* We've already got a file of some kind or another */
    if (r->proxyreq || (r->finfo.filetype != 0)) {
    if (r->finfo.filetype != 0) {
        return DECLINED;
    }

    /* Not a file request */
    if (r->proxyreq || !r->filename) {
        return DECLINED;
    }