Commit ebd81038 authored by dgaudet's avatar dgaudet
Browse files

PR#742: mod_include was not properly changing directory

Reviewed by:	Dean, Brian
Submitted by:	Marc
Obtained from:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3@78399 13f79535-47bb-0310-9956-ffa450edef68
parent 1f9cb3d8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -520,6 +520,7 @@ int include_cgi(char *s, request_rec *r)
    }
    
    destroy_sub_req (rr);
    chdir_file(r->filename);
    
    return 0;
}
@@ -567,6 +568,7 @@ int handle_include(FILE *in, request_rec *r, char *error, int noexec) {
	    
	    if (!error_fmt && run_sub_req (rr))
	        error_fmt = "unable to include %s in parsed file %s";
	    chdir_file(r->filename);
		    
            if (error_fmt) {
                log_printf(r->server, error_fmt, tag_val, r->filename);