You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sf...@apache.org on 2011/10/09 21:00:51 UTC
svn commit: r1180689 - /httpd/httpd/trunk/modules/proxy/mod_proxy.c
Author: sf
Date: Sun Oct 9 19:00:51 2011
New Revision: 1180689
URL: http://svn.apache.org/viewvc?rev=1180689&view=rev
Log:
Force base 10 when parsing the Content-Length. It doesn't matter in this
case, but in general using strto*(..., 0) for parsing HTTP headers is a bug.
Modified:
httpd/httpd/trunk/modules/proxy/mod_proxy.c
Modified: httpd/httpd/trunk/modules/proxy/mod_proxy.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy.c?rev=1180689&r1=1180688&r2=1180689&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy.c Sun Oct 9 19:00:51 2011
@@ -1011,7 +1011,7 @@ static int proxy_handler(request_rec *r)
}
cl_a = apr_table_get(r->headers_in, "Content-Length");
if (cl_a) {
- apr_strtoff(&cl, cl_a, &end, 0);
+ apr_strtoff(&cl, cl_a, &end, 10);
/*
* The request body is of length > 0. We cannot
* retry with a direct connection since we already