Roxen.git/
server/
modules/
misc/
pathinfo.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2004-05-23
2004-05-23 22:49:38 by Martin Nilsson <mani@lysator.liu.se>
917f5c2c776ed3f96dc8b29e3a943dd00c011ecb (
5
lines) (+
3
/-
2
)
[
Show
|
Annotate
]
Branch:
Aphoto_2.0_beta3
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;