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 - 2001, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.555 2004/04/19 16:44:57 mast Exp $"; + constant cvs_version = "$Id$";   #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:2080:       if (recurse_count > 50) {    TRACE_ENTER ("Looped " + recurse_count +    " times in internal redirects - giving up", 0);    TRACE_LEAVE ("");    }       else {    Configuration oc = id->conf;    id->not_query = fname; +  +  // Make sure RXML defines don't survive <insert file/>. +  // Fixes [bug 6631] where the return code for the outer +  // RXML scope caused the <insert file/> to fail. +  m_delete(id->misc, "defines"); +  m_delete(id->misc, "error_code"); +     TRY_FIRST_MODULES (file, open_file (fname, mode, id,    internal_get, recurse_count + 1));    fname = id->not_query;       if(search(mode, "R")!=-1) // raw (as in not parsed..)    {    string f;    mode -= "R";    if(f = real_file(fname, id))    {