summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge r1783440 from 2.2.x:2.2.x-merge-http-strictJoe Orton2017-02-171-6/+10
| | | | | | | | | | * server/core.c (merge_core_server_configs): Fix merging of HttpProtocolOptions from global to vhost context. Reviewed by: jorton, wrowe, covener git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1783441 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1777460, r1777672 from trunk:Yann Ylavic2017-01-101-15/+54
| | | | | | | | | | | | http: allow folding in check_headers(), still compliant with RFC 7230 (3.2.4). http: follow up to r1777460. We MUST unfold outgoing HTTP headers in any case, "message/http" is for inner content. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1778094 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1775827 from 2.4.x:Eric Covener2017-01-031-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | Merge r1775199, r1775664 from trunk: Fix strict Host: header checking on EBCDIC on zOS, isascii() really means 7 bit ascii, but our strings are in ebcdic for 99.95% of the lifetime of the server. remove initial isascii check entirely We are already checking an even narrower set of characters just below. Submitted by: covener Reviewed/backported by: jim git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1777247 13f79535-47bb-0310-9956-ffa450edef68
* match comment to actual major Eric Covener2017-01-031-1/+1
| | | | | | | | | | | | #define MODULE_MAGIC_NUMBER_MAJOR 20051115 Props to whoever wrote the test that checks the comment vs the define! git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1777182 13f79535-47bb-0310-9956-ffa450edef68
* restore r = NULL; dropped by hand-merge.Eric Covener2017-01-031-0/+1
| | | | | | | | Confirmed with Bill over email. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1777178 13f79535-47bb-0310-9956-ffa450edef68
* Merge httpd-2.4.x-merge-http-strict branch r1767941 - r1775671William A. Rowe Jr2016-12-2312-307/+1187
| | | | | | | | | | For complete patch evolution, see; http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x-merge-http-strict/ git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775780 13f79535-47bb-0310-9956-ffa450edef68
* Backports: r1635762William A. Rowe Jr2016-12-222-1/+7
| | | | | | | | | | Submitted By: Edward Lu <Chaosed0 gmail.com> Support custom ErrorDocuments for HTTP 501 and 414 status codes. PR 57167 [Edward Lu <Chaosed0 gmail.com>] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775776 13f79535-47bb-0310-9956-ffa450edef68
* Clean up assorted merge-duplications and whitespace to sync at 2.4.24-dev.0William A. Rowe Jr2016-12-221-25/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775774 13f79535-47bb-0310-9956-ffa450edef68
* Backports: r1683123William A. Rowe Jr2016-12-222-4/+10
| | | | | | | | | | | Submitted by: ylavic core: Avoid a possible truncation of the faulty header included in the HTML response when LimitRequestFieldSize is reached. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775769 13f79535-47bb-0310-9956-ffa450edef68
* Backports: r1483005William A. Rowe Jr2016-12-221-6/+0
| | | | | | | | | Submitted by: jailletc36 core: Do not over allocate memory within 'ap_rgetline_core' for the common case. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775767 13f79535-47bb-0310-9956-ffa450edef68
* Note backport revno 1710095 which actually occurs at r1775758William A. Rowe Jr2016-12-220-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775759 13f79535-47bb-0310-9956-ffa450edef68
* Crossport: r1758672William A. Rowe Jr2016-12-223-7/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backports: r1710095, r1727544 Submitted by: ylavic, rpluem core: Limit to ten the number of tolerated empty lines between request, and consume them before the pipelining check to avoid possible response delay when reading the next request without flushing. Before this commit, the maximum number of empty lines was the same as configured LimitRequestFields, defaulting to 100, which was way too much. We now use a fixed/hard limit of 10 (DEFAULT_LIMIT_BLANK_LINES). check_pipeline() is changed to check for (up to the limit) and comsume the trailing [CR]LFs so that they won't be interpreted as pipelined requests, otherwise we would block on the next read without flushing data, and hence possibly delay pending response(s) until the next/real request comes in or the keepalive timeout expires. Finally, when the maximum number of empty line is reached in read_request_line(), or that request line does not contains at least a method and an (valid) URI, we can fail early and avoid some failure detected in further processing. Ensure that proto_num and protocol is set in another "error out early" edge case. This can happen with invalid CONNECT requests as described in the PR. PR: 58929 Borrow Yann's effort at cross-porting this to 2.2.x git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775758 13f79535-47bb-0310-9956-ffa450edef68
* Remove spurious {}'s never present on trunk/2.4.xWilliam A. Rowe Jr2016-12-221-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775756 13f79535-47bb-0310-9956-ffa450edef68
* Noted backport revno 1727544 which actually occurs at r1775758William A. Rowe Jr2016-12-220-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775752 13f79535-47bb-0310-9956-ffa450edef68
* Resume building the appropriate patches for relevant 2.2.x -> 2.4.x changesWilliam A. Rowe Jr2016-12-222-50/+91
|\ | | | | | | | | | | | | | | | | to allow us to apply the 2.4.x already-reviewed HttpProtocolOptions and parser changes. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775749 13f79535-47bb-0310-9956-ffa450edef68
* | Backports: r1057372William A. Rowe Jr2016-12-221-0/+3
| | | | | | | | | | | | | | | | | | | | Submitted by: trawick Another comment-only backport syncing to 2.4.x git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775735 13f79535-47bb-0310-9956-ffa450edef68
* | Backports: r1237407William A. Rowe Jr2016-12-221-3/+3
| | | | | | | | | | | | | | | | Submitted by: trawick s/ensure/insure/ git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775733 13f79535-47bb-0310-9956-ffa450edef68
* | Backports: r1213391William A. Rowe Jr2016-12-221-3/+0
| | | | | | | | | | | | | | | | | | Submitted by: trawick zap an unhelpful, out of date comment from httpd 1.2 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775732 13f79535-47bb-0310-9956-ffa450edef68
* | Backports: r892678William A. Rowe Jr2016-12-222-4/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: niq Reject requests containing (invalid) NULL characters in request line or request headers. PR 43039 Backports: r892808 Submitted by: rpluem Fix up r892678 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775731 13f79535-47bb-0310-9956-ffa450edef68
* | core: Do not over allocate memory within 'ap_rgetline_core' for the common case.William A. Rowe Jr2016-12-222-6/+3
| | | | | | | | | | | | | | | | trunk patch: http://svn.apache.org/r1483005 Submitted by: jailletc36 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775730 13f79535-47bb-0310-9956-ffa450edef68
* | Delete gratuitous delta between 2.3-dev and 2.2.x branch.William A. Rowe Jr2016-12-221-2/+1
| | | | | | | | | | | | | | No effective code change git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775728 13f79535-47bb-0310-9956-ffa450edef68
* | Branching at 2.2.x to arrive at 2.4.23 to *then* apply all of the alreadyWilliam A. Rowe Jr2016-12-222-107/+46
|\ \ | | | | | | | | | | | | | | | | | | | | | navigated 2.4.x-merge-http-strict backport git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775727 13f79535-47bb-0310-9956-ffa450edef68
* | | Backports: r1635762William A. Rowe Jr2016-12-222-1/+7
| |/ |/| | | | | | | | | | | | | | | Submitted By: Edward Lu <Chaosed0 gmail.com> Support custom ErrorDocuments for HTTP 501 and 414 status codes. PR 57167 [Edward Lu <Chaosed0 gmail.com>] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775718 13f79535-47bb-0310-9956-ffa450edef68
* | Backports: r1621419 (protocol.c only)William A. Rowe Jr2016-12-221-1/+1
| | | | | | | | | | | | | | | | | | Submitted by: jailletc36 Fix sscanf format spotted by cppcheck (changes version major/minor types from signed to unsigned) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775717 13f79535-47bb-0310-9956-ffa450edef68
* | Backports: r1433613William A. Rowe Jr2016-12-221-1/+1
| | | | | | | | | | | | | | | | | | | | Submitted by: jailletc36 Improve error message PR 54384 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775715 13f79535-47bb-0310-9956-ffa450edef68
* | Backports: r1407528 William A. Rowe Jr2016-12-221-2/+0
| | | | | | | | | | | | | | | | Submitted by: sf remove obsolete comment from 1.3 days git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775714 13f79535-47bb-0310-9956-ffa450edef68
* | Backports: r1407088William A. Rowe Jr2016-12-221-2/+0
| | | | | | | | | | | | | | | | Submitted by: sf remove some more old unused code git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775713 13f79535-47bb-0310-9956-ffa450edef68
* | Backports: r1407004William A. Rowe Jr2016-12-221-11/+0
| | | | | | | | | | | | | | | | | | Submitted by: sf Remove unused code. "Next week" hasn't happened in the last 10 years or so. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775712 13f79535-47bb-0310-9956-ffa450edef68
* | Backports: r1392347William A. Rowe Jr2016-12-221-10/+4
| | | | | | | | | | | | | | | | | | Submitted by: trawick core: ErrorDocument now works for requests without a Host header. PR: 48357 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775711 13f79535-47bb-0310-9956-ffa450edef68
* | Backports: r1352911William A. Rowe Jr2016-12-221-7/+17
| | | | | | | | | | | | | | | | | | | | | | Submitted by: sf Make sure that a triggering LimitRequestFieldSize is always logged, even if the first read already exeeds the limit and ap_rgetline does not return a header name. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775710 13f79535-47bb-0310-9956-ffa450edef68
* | Backports: r1237407William A. Rowe Jr2016-12-221-3/+3
| | | | | | | | | | | | | | | | Submitted by: trawick s/ensure/insure/ git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775708 13f79535-47bb-0310-9956-ffa450edef68
* | Backports: r1213391William A. Rowe Jr2016-12-221-3/+0
| | | | | | | | | | | | | | | | | | Submitted by: trawick zap an unhelpful, out of date comment from httpd 1.2 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775707 13f79535-47bb-0310-9956-ffa450edef68
* | Backports: r1188745William A. Rowe Jr2016-12-221-5/+5
| | | | | | | | | | | | | | | | | | Submitted by: rpluem Correctly return a 400 (Bad request) in case of a HTTP/0.9 request like GET @example.org/foo git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775706 13f79535-47bb-0310-9956-ffa450edef68
* | Backports: r1185385William A. Rowe Jr2016-12-221-7/+34
| | | | | | | | | | | | | | | | | | Submitted by: sf Downgrade some more log messages indicating client errors from level error to info. Add log messages for various reasons to return HTTP_BAD_REQUEST. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775705 13f79535-47bb-0310-9956-ffa450edef68
* | Backports: r1178566William A. Rowe Jr2016-12-222-0/+23
| | | | | | | | | | | | | | | | | | Submitted by: sf Enforce LimitRequestFieldSize after multiple headers with the same name have been merged. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775699 13f79535-47bb-0310-9956-ffa450edef68
* | Backports: r1102124 (in part, protocol.c only)William A. Rowe Jr2016-12-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | Submitted by: sf Use APR_STATUS_IS_... in some more cases. While this is not strictly necessary everywhere, it makes it much easier to find the problematic cases. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775697 13f79535-47bb-0310-9956-ffa450edef68
* | Backports: r1100511William A. Rowe Jr2016-12-220-0/+0
| | | | | | | | | | | | | | | | | | | | Submitted by: covener use APR_STATUS_IS_TIMEUP() instead of direct comparison with APR_TIMEUP. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775696 13f79535-47bb-0310-9956-ffa450edef68
* | Backports: r1057372William A. Rowe Jr2016-12-221-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Submitted by: trawick comment on where multiple headers with same name get merged (some strict Cookie parsers can't handle what happens later, but that is not our fault) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775695 13f79535-47bb-0310-9956-ffa450edef68
* | Backports: r892808William A. Rowe Jr2016-12-221-1/+1
| | | | | | | | | | | | | | | | | | Submitted by: rpluem Fix up r892678 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775692 13f79535-47bb-0310-9956-ffa450edef68
* | Backports: r892678William A. Rowe Jr2016-12-222-5/+21
| | | | | | | | | | | | | | | | | | | | Submitted by: niq Reject requests containing (invalid) NULL characters in request line or request headers. PR 43039 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775691 13f79535-47bb-0310-9956-ffa450edef68
* | For purposes of constructing a patch against 2.2.31, show all work since ↵William A. Rowe Jr2016-12-220-0/+0
|/ | | | | | 2.2.32 bump git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775685 13f79535-47bb-0310-9956-ffa450edef68
* And we are at .32-devWilliam A. Rowe Jr2015-07-154-3/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1691247 13f79535-47bb-0310-9956-ffa450edef68
* Prepare to tag 2.2.31William A. Rowe Jr2015-07-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1691243 13f79535-47bb-0310-9956-ffa450edef68
* Fix Copyright of any latex conversions of the docsWilliam A. Rowe Jr2015-07-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1691242 13f79535-47bb-0310-9956-ffa450edef68
* Fix MOD_OPTIONAL_HOOK_EXPORT_H #include guard spelling (silliest compileWilliam A. Rowe Jr2015-07-152-7/+1
| | | | | | | | | | warning in 2.2 codebase?) Backports: r1514215 Submitted by: trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1691240 13f79535-47bb-0310-9956-ffa450edef68
* Approve and commit symbols export, with simplified CHANGESWilliam A. Rowe Jr2015-07-154-15/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1691239 13f79535-47bb-0310-9956-ffa450edef68
* +1Jeff Trawick2015-07-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1691169 13f79535-47bb-0310-9956-ffa450edef68
* Address mod_proxy_balancer's linking issue on Windows.Yann Ylavic2015-07-151-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1691162 13f79535-47bb-0310-9956-ffa450edef68
* remove dependency to store.h removed from OpenSSL 1.0.xGregg Lewis Smith2015-07-141-21/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1691074 13f79535-47bb-0310-9956-ffa450edef68
* Easy vote.Yann Ylavic2015-07-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1690841 13f79535-47bb-0310-9956-ffa450edef68