httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: [patch] correctly redirect URLs based on connection information.
Date Fri, 23 Jan 1998 22:41:29 GMT
Michael Douglass wrote:
> ! char *construct_url(pool *p, const char *uri, const request_rec *r) {
> !     char *protocol = "http";
> !
> ! #ifdef APACHE_SSL
> !     protocol = pstrcpy(p, http_method(r));
> ! #endif
> !
> !     return pstrcat (p, protocol, "://",
> !         construct_server(p, r->hostname ? r->hostname
> !                                         : r->server->server_hostname,
> !                          r->hostname ? ntohs(r->connection->local_addr.sin_port)
> !                                      : r->server->port),
> !                          uri, NULL);

Where on Earth did this come from? It's certainly not something I'd
permit to appear in Apache-SSL.

Cheers,

Ben.

-- 
Ben Laurie            |Phone: +44 (181) 735 0686|Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org
and Technical Director|Email: ben@algroup.co.uk |Apache-SSL author
A.L. Digital Ltd,     |http://www.algroup.co.uk/Apache-SSL
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache

Mime
View raw message