httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexei Kosut <ako...@nueva.pvt.k12.ca.us>
Subject Re: this host crap
Date Sat, 27 Apr 1996 07:22:51 GMT
On Wed, 24 Apr 1996, Robert S. Thau wrote:

> Brief note --- trailing periods are legal in DNS hostnames (in fact,
> they are the canonical form of an FQDN, albeit a rarely used one, if
> I recall right), so I think we really do have to support them.

Here's a patch. BTW, have we decided yet if my htdigest utility can be
included in the next release of 1.1 beta?

diff -c -r1.18 http_protocol.c
*** http_protocol.c     1996/04/16 07:54:07     1.18
--- http_protocol.c     1996/04/27 07:18:09
***************
*** 353,358 ****
--- 353,362 ----
    if (*r->hostname && (atoi(r->hostname) != r->server->port))
      return;

+   if ((host[strlen(host)-1]) == '.') {
+     host[strlen(host)-1] = '\0';
+   }
+
    r->hostname = host;

    for (s = r->server->next; s; s = s->next) {

-- 
________________________________________________________________________
Alexei Kosut <akosut@nueva.pvt.k12.ca.us>    
URL: http://www.nueva.pvt.k12.ca.us/~akosut/  
Lefler on IRC, DALnet <http://www.dal.net/>   


Mime
View raw message