You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Roy T. Fielding" <fi...@liege.ICS.UCI.EDU> on 1996/06/17 23:16:43 UTC
Re: ErrorDocument doesn't work as documented in 1.1b3 (fwd)
It looks to me like he is just missing the closing double-quote
from ErrorDocument. [not having looked at the actual code]
.....Roy
> From: David MacKenzie <dj...@va.pubnix.com>
> Subject: ErrorDocument with a string constant prints the " and %s literally
> Affects: src/http_request.c src/http_protocol.c
> ChangeLog: Neither die() nor send_error_response() does the documented
> conversions, just a literal bputs().
> Comments:
> I put in a .htaccess:
> ErrorDocument 404 "Hey, what's going on? %s
> Then I GET a bogus URL from that server:
>
> djm@catapult 4 $ httpget -x http://wwwcharlotte/flummox
> HTTP/1.0 404 Not found
> Date: Mon, 17 Jun 1996 18:33:37 GMT
> Server: Apache/1.1b3
> Content-type: text/html
>
> "Hey, what's going on? %sdjm@catapult 5 $
>
> According to http://www.apache.org/docs/custom-error.html this is
> wrong; it shouldn't print the " and should expand the %s to additional
> information about the error. As far as I can tell, the documented
> behavior is simply unimplemented.