Roxen.git / server / config_interface / logutil.pike

version» Context lines:

Roxen.git/server/config_interface/logutil.pike:116:   // Returns ({ URL to module config page, human-readable (full) module name })   array(string) get_conf_url_to_module(string|RoxenModule m, string|void lang)   {    // module is either a RoxenModule object or a string as returned by    // get_modname(some RoxenModule), eg "ConfigInterface/piketag#0"    RoxenModule module = stringp(m) ? Roxen.get_module(m) : m;    Configuration conf = module->my_configuration();    string url_modname = replace(conf->otomod[module], "#", "!"),    url_confname = conf->name;    -  return ({ sprintf("/%s/sites/site.html/%s/%s/", -  lang || "standard", url_confname, url_modname), +  return ({ sprintf("/sites/site.html/%s/-!-/%s/?section=Information", +  Roxen.http_encode_string(url_confname), +  Roxen.http_encode_string(url_modname)),    Roxen.get_modfullname(module) });   }      // Returns ({ URL to virtual server config page, virtual server name })   array(string) get_conf_url_to_virtual_server(string|Configuration conf,    string|void lang)   {    // conf is either a conf object or the configuration's real name,    // eg "ConfigInterface"    string url_confname;    if(stringp(conf))    conf = roxen->find_configuration(url_confname = conf);    else    url_confname = conf->name;    -  return ({ sprintf("/%s/sites/site.html/%s/", lang || "standard", -  url_confname), conf->query_name() }); +  return ({ sprintf("/sites/site.html/%s/", +  Roxen.http_encode_string(url_confname)), conf->query_name() });   } -  +  +