Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1: - /* $Id: module.pike,v 1.18 1997/08/12 06:32:02 per Exp $ */ + /* $Id: module.pike,v 1.19 1997/08/13 10:31:09 grubba Exp $ */      #include <module.h>      mapping (string:mixed *) variables=([]);      object this = this_object();   int module_type;   string fix_cvs(string from)   {    from = replace(from, ({ "$", "Id: "," Exp $" }), ({"","",""}));
Roxen.git/server/base_server/module.pike:330:       foreach(replace(query("_seclevels"),({" ","\t","\\\n"}),({"","",""}))/"\n",sl)    {    if(!strlen(sl) || sl[0]=='#')    continue;       // sl = lower_case(sl); // Lower case? /grubba    string type, value;    if(sscanf(sl, "%s=%s", type, value)==2)    { -  value = replace(value, ({ "?", ".", "*" }), ({ ".", "\.", ".*" })); +  value = replace(value, ({ "?", ".", "*" }), ({ ".", "\\.", ".*" }));    switch(lower_case(type))    {    case "allowip":    patterns += ({ ({ MOD_ALLOW, Regexp(value)->match, }) });    break;       case "denyip":    patterns += ({ ({ MOD_DENY, Regexp(value)->match, }) });    break;