Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // A vitual server's main configuration   // Copyright © 1996 - 2000, Roxen IS. - constant cvs_version = "$Id: configuration.pike,v 1.432 2001/05/16 12:56:39 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.433 2001/06/06 21:04:49 per 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:1214:   //! directory) are only returned when `no_magic' was set to 1;   //! otherwise a result mapping is always generated.   {   #ifdef MODULE_LEVEL_SECURITY    int slevel;   #endif      #ifdef THREADS    Thread.MutexKey key;   #endif +  + #if defined(__NT__) || defined(STRIP_BSLASH) +  if( strlen(id->not_query ) ) +  { +  werror("a: "+id->not_query+"\n"); +  int ss = (<'/','\\'>)[ id->not_query[0] ]; +  id->not_query = combine_path("/",replace(X,"\\","/")); +  if( !ss ) id->not_query = id->not_query[1..]; +  werror("b: "+id->not_query+"\n"); +  } + #endif +     TRACE_ENTER(sprintf("Request for %s", id->not_query), 0);       string file=id->not_query;    string loc;    function funp;    mixed tmp, tmp2;    mapping|object(Stdio.File)|int fid;       if(!no_magic)    {