httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <>
Subject SUGGESTION: mailto: HREF for admin address in server error msgs
Date Tue, 14 Jan 1997 20:13:21 GMT

I was wondering if there is a reason why it is impossible to insert an
administrator address in the form

    <A HREF="mailto:WebMaster@some.where">WebMaster@some.where</A>


One might be tempted to specify it in the ServerAdmin directive in the
configuration file (but it gets escape_html()-expanded in
http_protocol.c, probably to prevent some stupid administrator like me to
insert garbage),

Wouldn't it be better/sensible to add the reference in http_protocol.c
automatically, like in:

--- http_protocol.c.bak	Mon Jan 13 12:28:33 1997
+++ http_protocol.c	Tue Jan 14 21:05:27 1997
@@ -1649,8 +1649,9 @@
 	    bputs("The server encountered an internal error or\n", fd);
 	    bputs("misconfiguration and was unable to complete\n", fd);
 	    bputs("your request.<P>\n", fd);
-	    bputs("Please contact the server administrator,\n ", fd);
-	    bputs(escape_html(r->pool, r->server->server_admin), fd);
+	    bvputs(fd, "Please contact the server administrator,\n <A HREF=\"mailto:",
+		    escape_html(r->pool, r->server->server_admin), "\">",
+		    escape_html(r->pool, r->server->server_admin), "</A>");
 	    bputs(" and inform them of the time the error occurred,\n", fd);
 	    bputs("and anything you might have done that may have\n", fd);
 	    bputs("caused the error.<P>\n", fd);

Was the reason against the "mailto:" scheme that it is potentially
unavailable? But even then is this solution "not worse than" the current
behaviour, is it?

| S I E M E N S |  <>  |      Siemens Nixdorf
| ------------- |   Voice: +49-89-636-46021     |  Informationssysteme AG
| N I X D O R F |   FAX:   +49-89-636-44994     |   81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request

View raw message