Branch: Tag:

1999-10-08

1999-10-08 17:21:20 by Per Hedbor <ph@opera.com>

Do not attempt to remove the last /

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

1:   /* -  * $Id: pathinfo.pike,v 1.4 1999/10/04 15:00:28 per Exp $ +  * $Id: pathinfo.pike,v 1.5 1999/10/08 17:21:20 per Exp $    *    * PATH_INFO support for Roxen.    *
10:      inherit "module";    - constant cvs_version = "$Id: pathinfo.pike,v 1.4 1999/10/04 15:00:28 per Exp $"; + constant cvs_version = "$Id: pathinfo.pike,v 1.5 1999/10/08 17:21:20 per Exp $";   constant thread_safe = 1;      // #define PATHINFO_DEBUG
83:    }   #else /* Slower, but it works... */    string pi = ""; -  while( (search( query, "/" ) != -1) && strlen( query ) > 0 ) +  while( (search( query, "/" ) > 0) && strlen( query ) > 0 )    {    query = reverse(query);    string add_path_info;