ASF Bugzilla – Attachment 22018 Details for
Bug 44995
Custom HTTP-Error codes get remapped to 500er codes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Make httpd tolerate empty reason phrases in status line
empty_reason_phrase_filters.patch (text/plain), 1.04 KB, created by
Rainer Jung
on 2008-05-27 12:12:21 UTC
(
hide
)
Description:
Make httpd tolerate empty reason phrases in status line
Filename:
MIME Type:
Creator:
Rainer Jung
Created:
2008-05-27 12:12:21 UTC
Size:
1.04 KB
patch
obsolete
>Index: modules/http/http_filters.c >=================================================================== >--- modules/http/http_filters.c (revision 660598) >+++ modules/http/http_filters.c (working copy) >@@ -802,12 +802,21 @@ > { > char *end; > >- if (r->status_line >- && (strlen(r->status_line) <= 4 >+ if (r->status_line) { >+ int len = strlen(r->status_line); >+ if (len < 3 > || apr_strtoi64(r->status_line, &end, 10) != r->status >- || *end != ' ' >- || (end - 3) != r->status_line)) { >- r->status_line = NULL; >+ || (end - 3) != r->status_line >+ || (len >= 4 && ! apr_isspace(r->status_line[3]))) { >+ r->status_line = NULL; >+ } >+ /* Since we passed the above check, we know that length three >+ * is equivalent to only a 3 digit numeric http status. >+ * RFC2616 mandates a trailing space, let's add it. >+ */ >+ else if (len == 3) { >+ r->status_line = apr_pstrcat(r->pool, r->status_line, " "); >+ } > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 44995
: 22018 |
22019