Roxen.git/
server/
etc/
modules/
Roxen.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2000-12-11
2000-12-11 03:38:48 by Martin Nilsson <mani@lysator.liu.se>
685ff72ee79548d99b0da683ec10030e2d80f82f (
23
lines) (+
18
/-
5
)
[
Show
|
Annotate
]
Branch:
5.2
Some formatting
Rev: server/etc/modules/Roxen.pmod:1.58
1:
/*
-
* $Id: Roxen.pmod,v 1.
57
2000/12/11 03:
36
:
16
per
Exp $
+
* $Id: Roxen.pmod,v 1.
58
2000/12/11 03:
38
:
48
nilsson
Exp $
* * Various helper functions. *
51:
}
-
// From the old 'http' file
+
//
---
From the old 'http' file
---------------------------------
+
mapping http_low_answer( int errno, string data ) //! Return a result mapping with the error and data specified. The //! error is infact the status response, so '200' is HTTP Document
348:
+ ([ "extra_heads":([ "Proxy-Authenticate":"basic realm=\""+realm+"\"",]),]); }
-
// From the old 'roxenlib' file
+
+
//
---
From the old 'roxenlib' file
-------------------------------
+
string extract_query(string from) { if(!from) return "";
883:
"ω": "\x3C9", ]);
-
constant replace_entities=indices( iso88591 )
+indices
( international )
+indices
( symbols )
+indices
( greek )+({"<",">","&",""","'",""",""","'","�"});
-
constant replace_values =values( iso88591 )+values( international )+values( symbols )+values( greek )+({"<",">","&","\"","\'","\"","\"","\'","\000"});
+
constant replace_entities
=
indices( iso88591 )
+
+
indices
( international )
+
+
indices
( symbols )
+
+
indices
( greek )
+
+
({"<",">","&",""","'",""",""","'","�"});
-
+
constant replace_values = values( iso88591 ) +
+
values( international ) +
+
values( symbols ) +
+
values( greek ) +
+
({"<",">","&","\"","\'","\"","\"","\'","\000"});
+
constant safe_characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"/""; constant empty_strings = ({""})*sizeof(safe_characters);