Roxen.git / server / etc / modules / Variable.pmod / module.pmod

version» Context lines:

Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1: - // $Id: module.pmod,v 1.13 2000/09/04 13:52:44 per Exp $ + // $Id: module.pmod,v 1.14 2000/09/12 21:27:50 per Exp $      #include <module.h>   #include <roxen.h>      // Locale macros   static inline string getloclang() {    return roxenp()->locale->get();   }      //<locale-token project="roxen_config"> LOCALE </locale-token>
Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1159:       if(!strlen( port ) )    return ({ "Empty URL field", port });       if(sscanf( port, "%[^:]://%[^/]%s", protocol, host, path ) != 3)    return ({""+port+" does not conform to URL syntax\n", port });       if( path == "" )    {    warning += "Added / to the end of "+port+"\n"; -  host += "/"; +  path = "/";    }    int pno;    if( sscanf( host, "%s:%d", host, pno ) == 2)    {    if( roxenp()->protocols[ lower_case( protocol ) ]    && (pno == roxenp()->protocols[ lower_case( protocol ) ]->default_port ))    warning += "Removed the "    "default port number ("+pno+") from "+port+"\n";    else    host = host+":"+pno;