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.842 2003/11/04 14:51:40 grubba Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.843 2003/11/04 16:23:52 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 )    { -  code += " return " + -  ((thr_code == 2)?"authmethod->authenticate_throw(id, realm)": -  "1") + -  ";\n"; +  if (all_shorted) { +  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"