Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS.   //   // The Roxen WebServer main program.   //   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.843 2003/11/04 16:23:52 grubba Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.844 2003/11/05 11:10:30 grubba Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:5162:    }    else if( intp( instr ) ) {    thr_code = 2;    need_auth = 1;    }    else if( stringp( instr ) )    {    code += sprintf( instr, @args )+"\n";    if( cmd == DENY )    { -  if (all_shorted) { +  // Make sure we fail regardless of the setting +  // of all_shorted when we're done.    if (thr_code < max_short_code) {    code += sprintf(" {\n"    " state->%s = %d;\n"    " if (short_fail < %d)\n"    " short_fail = %d;\n"    " break;\n"    " }\n",    check[3], thr_code,    thr_code,    thr_code);    max_short_code = thr_code;    } else {    code += sprintf(" {\n"    " state->%s = %d;\n"    " short_fail = %d;\n"    " break;\n"    " }\n",    check[3], thr_code,    thr_code);    } -  } else { -  code += sprintf(" {\n" -  " state->%s = %d;\n" -  " break;\n" -  " }\n", -  check[3], thr_code); +     } -  } +     else    {    if (shorted) {    // OK with return. Ignore FAIL/return.    if (all_shorted) {    code +=   #if defined(SECURITY_PATTERN_DEBUG) || defined(HTACCESS_DEBUG)    " {\n"    " report_debug(\" Result: 0 (fast return)\\n\");\n"    " return 0;\n"