Roxen.git/
server/
modules/
tags/
rxmltags.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2000-05-12
2000-05-12 21:04:35 by Martin Nilsson <mani@lysator.liu.se>
40d083bf8dbd7b8f177c09c222cb5e5369340376 (
11
lines) (+
6
/-
5
)
[
Show
|
Annotate
]
Branch:
5.2
More quoteing possibilities
Rev: server/modules/tags/rxmltags.pike:1.122
7:
#define _rettext id->misc->defines[" _rettext"] #define _ok id->misc->defines[" _ok"]
-
constant cvs_version="$Id: rxmltags.pike,v 1.
121
2000/05/
09
11
:
22
:
45
kuntri
Exp $";
+
constant cvs_version="$Id: rxmltags.pike,v 1.
122
2000/05/
12
21
:
04
:
35
nilsson
Exp $";
constant thread_safe=1; constant language = roxen->language;
632:
n=id->conf->try_get_file(Roxen.fix_relative(m->file,id),id); if(!n) RXML.run_error("No such file ("+m->file+").\n"); id->pragma["no-cache"] = nocache;
-
return n;
+
return
m->quote!="html"?
n
:({ Roxen.html_encode_string(n) })
;
} n=id->conf->try_get_file(Roxen.fix_relative(m->file,id),id); if(!n) RXML.run_error("No such file ("+m->file+").\n");
-
return n;
+
return
m->quote!="html"?
n
:({ Roxen.html_encode_string(n) })
;
} if(m->href && query("insert_href")) {
646:
CACHE(60); Protocols.HTTP q=Protocols.HTTP.get_url(m->href); if(q && q->status>0 && q->status<400)
-
return ({ q->data() });
+
return ({
m->quote!="html"?
q->data()
:Roxen.html_encode_string(q->data())
});
RXML.run_error(q ? q->status_desc + "\n": "No server response\n"); }
1046:
inherit RXML.Frame; array do_enter(RequestID id) {
-
if(args->
quote
) content_type = RXML.t_same;
+
if(args->
preparse
) content_type = RXML.t_same
(RXML.PXml)
;
return 0; }