Roxen.git/
server/
etc/
modules/
Roxen.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2008-11-05
2008-11-05 12:34:02 by Martin Stjernholm <mast@lysator.liu.se>
d3764f51daeb79b0ee51f86fa7c750fd499ce624 (
7
lines) (+
5
/-
2
)
[
Show
|
Annotate
]
Branch:
5.2
Fix to work in 7.8 (Crypto.string_to_hex is no more).
Rev: server/etc/modules/Roxen.pmod:1.252
1:
// This is a roxen pike module. Copyright © 1999 - 2004, Roxen IS. //
-
// $Id: Roxen.pmod,v 1.
251
2008/11/05 12:
17
:
30
stewa
Exp $
+
// $Id: Roxen.pmod,v 1.
252
2008/11/05 12:
34
:
02
mast
Exp $
#include <roxen.h> #include <config.h>
2329:
case "hex": if(String.width(val) > 8) RXML.run_error( "Cannot hex encode wide characters.\n" );
-
return
Crypto
.
string_to_hex
(val);
+
return
String
.
string2hex
(val);
case "base64": case "base-64":
2492:
//! Compat. //! @endstring //!
+
//! Returns zero if the encoding isn't recognized.
+
//!
//! @example //! UTF8-encode a string for use in a Mysql query in an HTML page: //! @expr{roxen_encode(val, "utf8.mysql.html")@}.