Roxen.git/
server/
etc/
modules/
Roxen.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2005-12-09
2005-12-09 14:26:59 by Henrik Grubbström (Grubba) <grubba@grubba.org>
37edee86b0bdc19117498bf8c83829955df579ad (
23
lines) (+
22
/-
1
)
[
Show
|
Annotate
]
Branch:
5.2
roxen_encode() now supports base64 and quoted-printable.
Rev: server/etc/modules/Roxen.pmod:1.202
1:
// This is a roxen pike module. Copyright © 1999 - 2004, Roxen IS. //
-
// $Id: Roxen.pmod,v 1.
201
2005/12/
07
14:
49
:
05
grubba Exp $
+
// $Id: Roxen.pmod,v 1.
202
2005/12/
09
14:
26
:
59
grubba Exp $
#include <roxen.h> #include <config.h>
2141:
case "utf-8": return string_to_utf8(val);
+
case "base64":
+
case "base-64":
+
case "b64":
+
return MIME.encode_base64(val);
+
+
case "quotedprintable":
+
case "quoted-printable":
+
case "qp":
+
return MIME.encode_qp(val);
+
case "http": return http_encode_invalids (val);
2228:
//! @value "utf-8" //! UTF-8 encoding. //!
+
//! @value "base64"
+
//! @value "base-64"
+
//! @value "b64"
+
//! Base-64 MIME encoding.
+
//!
+
//! @value "quotedprintable"
+
//! @value "quoted-printable"
+
//! @value "qp"
+
//! Quoted-Printable MIME encoding.
+
//!
//! @value "http" //! HTTP encoding. //! @value "cookie"