Commit 5cfb62a1 authored by Graham Leggett's avatar Graham Leggett
Browse files

Fixed a problem with directory listing corruption in the

PROXY_DIR filter.
PR:
Obtained from:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88971 13f79535-47bb-0310-9956-ffa450edef68
parent b898ccba
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -358,7 +358,6 @@ apr_status_t ap_proxy_send_dir_filter(ap_filter_t *f, apr_bucket_brigade *in)
	char *filename;
	int found = 0;
	int eos = 0;
	ctx->buffer[0] = 0;

	/* get a complete line */
	/* if the buffer overruns - throw data away */
@@ -457,6 +456,12 @@ apr_status_t ap_proxy_send_dir_filter(ap_filter_t *f, apr_bucket_brigade *in)
		    ctx->buffer, filename, filename);
	    }
	}
	else {
	    str = apr_pstrdup(p, ctx->buffer);
	}

	/* erase buffer for next time around */
	ctx->buffer[0] = 0;

	e = apr_bucket_pool_create(str, strlen(str), p);
	APR_BRIGADE_INSERT_TAIL(out, e);