Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.642 2007/11/29 14:33:48 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.643 2007/12/21 16:01:06 grubba Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.h>      #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:2981:    // 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; +     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);       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->raw_url=s; +     fake_id->not_query=s;       return fake_id;   }      int|string try_get_file(string s, RequestID id,    int|void stat_only, int|void nocache,    int|void not_internal,    mapping|void result_mapping)   //! Convenience function used in quite a lot of modules. Tries to read