Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:3252:    // id->misc->common is here for compatibility; it's better to use    // id->root_id->misc.    if ( !id->misc->common )    id->misc->common = ([]);       fake_id = id->clone_me();       fake_id->misc->common = id->misc->common;    fake_id->conf = this_object();    -  fake_id->raw_url=s; +  // 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) * "/";    -  +  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);       s = http_decode_string(s);    -  +  catch { s = utf8_to_string(s); }; +     s = Roxen.fix_relative (s, id);       // s is sent to Unix API's that take NUL-terminated strings...    if (search(s, "\0") != -1)    sscanf(s, "%s\0", s);       fake_id->not_query=s;       return fake_id;   }