Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:3077:    if ( !id->misc->common )    id->misc->common = ([]);       fake_id = id->clone_me();       fake_id->misc->common = id->misc->common;    fake_id->conf = this_object();       // HTTP transport encode the path.    // NB: This is required to make scan_for_query() happy. -  s = map(string_to_utf8(s)/"/", Protocols.HTTP.percent_encode) * "/"; +  s = string_to_utf8(s); +  sscanf(s, "%s?%s", string path, string query); +  s = map((path || s) / "/", Protocols.HTTP.percent_encode) * "/"; +  if (query) { +  s += "?" + query; +  }       fake_id->raw_url = s;       if (fake_id->scan_for_query)    // FIXME: If we're using e.g. ftp this doesn't exist. But the    // right solution might be that clone_me() in an ftp id object    // returns a vanilla (i.e. http) id instead when this function is    // used.    s = fake_id->scan_for_query (s);