Branch: Tag:

2004-05-22

2004-05-22 21:28:00 by Marc Dirix <marc@electronics-design.nl>

Sync with webserver -r1.18

Rev: server/modules/misc/pathinfo.pike:1.19

2:      inherit "module";    - constant cvs_version = "$Id: pathinfo.pike,v 1.18 2002/10/22 00:24:05 nilsson Exp $"; + constant cvs_version = "$Id: pathinfo.pike,v 1.19 2004/05/22 21:28:00 _cvs_dirix Exp $";   constant thread_safe = 1;      #ifdef PATHINFO_DEBUG
25:   mapping|int last_resort(object id)   {    PATHINFO_WERR(sprintf("Checking %O...", id->not_query)); + #if 0 +  // This kind of recursion detection doesn't work with internal +  // redirects. We leave it to the generic loop prevention in +  // handle_request et al. +     if (id->misc->path_info) {    // Already been here...    PATHINFO_WERR(sprintf("Been here, done that."));    return 0;    } -  + #endif       string query = id->not_query;   #ifndef PATHINFO_LINEAR
69:    }   #else /* PATHINFO_LINEAR */    string pi = ""; -  while( has_value( query[1..], "/" ) ) && strlen( query ) > 0 ) +  while( (search( query[1..], "/" ) != -1) && strlen( query ) > 0 )    {    query = reverse(query);    string add_path_info;