[Bug 61152] New: Hardcoded message for ErrorDocument should have text/plain type

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 61152] New: Hardcoded message for ErrorDocument should have text/plain type

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=61152

            Bug ID: 61152
           Summary: Hardcoded message for ErrorDocument should have
                    text/plain type
           Product: Apache httpd-2
           Version: 2.4.18
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ---

If I set:
ErrorDocument 404 "404 Not found"
The message will be sent with header:
Content-Type: text/html; charset=iso-8859-1

Instead, it should use text/plain. People are very unlikely to put a valid HTML
document between the quotes in the directive.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 61152] Hardcoded message for ErrorDocument should have text/plain type

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=61152

--- Comment #1 from Rubén J. García Hernández <[hidden email]> ---
On a related note:

I tried
ErrorDocument 404 ""
which I think is allowed per the documentation
https://httpd.apache.org/docs/2.4/custom-error.html

However I get the following:
AH00526: Syntax error on line ...
ErrorDocument takes two arguments, Change responses for HTTP errors

ErrorDocument 404 " "
does not give an error, but it not exactly what I wanted.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]