Branch: Tag:

2000-03-28

2000-03-28 14:46:04 by Martin Nilsson <mani@lysator.liu.se>

Better handling of broken port configurations

Rev: server/etc/modules/Roxen.pmod:1.15

1:   /* -  * $Id: Roxen.pmod,v 1.14 2000/03/25 23:47:31 nilsson Exp $ +  * $Id: Roxen.pmod,v 1.15 2000/03/28 14:46:04 nilsson Exp $    *    * Various helper functions.    *
862:    break;    }    -  string protocol, server, path; +  string protocol, server, path="";    int port;    if(sscanf(url, "%s://%s:%d/%s", protocol, server, port, path)!=4 && -  sscanf(url, "%s://%s/%s", protocol, server, path)!=3) +  sscanf(url, "%s://%s:%d", protocol, server, port)!=3 && +  sscanf(url, "%s://%s/%s", protocol, server, path)!=3 && +  sscanf(url, "%s://%s", protocol, server)!=2 )    return 0;       if(protocol=="fhttp") protocol="http";