Branch: Tag:

2004-05-23

2004-05-23 22:49:38 by Martin Nilsson <mani@lysator.liu.se>

has_* is to prefer over search

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

2:      inherit "module";    - constant cvs_version = "$Id: pathinfo.pike,v 1.20 2004/05/23 00:23:18 _cvs_stephen Exp $"; + constant cvs_version = "$Id: pathinfo.pike,v 1.21 2004/05/23 22:49:38 mani Exp $";   constant thread_safe = 1;      #ifdef PATHINFO_DEBUG
75:    }   #else /* PATHINFO_LINEAR */    string pi = ""; -  while( (search( query[1..], "/" ) != -1) && strlen( query ) > 0 ) +  while( has_value( query[1..], "/" ) ) && strlen( query ) > 0 )    {    query = reverse(query);    string add_path_info;