Roxen.git/
server/
modules/
filesystems/
filesystem.pike
Branch:
Tag:
Non-build tags
All tags
No tags
1999-01-13
1999-01-13 23:25:25 by Henrik Grubbström (Grubba) <grubba@grubba.org>
a20b323841891ccb65570adb0ce2d0c9eecdfbd6 (
16
lines) (+
11
/-
5
)
[
Show
|
Annotate
]
Branch:
5.2
Fixed a bug in some dead code.
Rev: server/modules/filesystems/filesystem.pike:1.48
8:
inherit "roxenlib"; inherit "socket";
-
constant cvs_version= "$Id: filesystem.pike,v 1.
47
1998
/
10
/
18
22
:
14
:
40
grubba Exp $";
+
constant cvs_version= "$Id: filesystem.pike,v 1.
48
1999
/
01
/
13
23
:
25
:
25
grubba Exp $";
constant thread_safe=1;
354:
if(sizeof(id->not_query) < 2) return 0; redirects++;
-
TRACE_LEAVE("Redirecting
to
\""
+
-
id->not_query[..sizeof(id->not_query)-2] +
-
"\"");
-
return http_redirect(
id->not
_query
[..sizeof(id->not_query)-2]
, id);
+
+
//
Note:
Keep
the query part.
+
/*
FIXME:
Should
probably
keep
prestates
etc
too.
+
* /grubba 1999-01-14
+
*/
+
string new_query =
id->not_query[..sizeof(id->not_query)-2] +
+
(id->query?("?"
+
id->query):"");
+
TRACE_LEAVE(
"
Redirecting to
\""
+ new_query + "\""
);
+
return http_redirect(
new
_query, id);
} if(!id->misc->internal_get && QUERY(.files)