Roxen.git/
server/
modules/
graphics/
graphic_text.pike
Branch:
Tag:
Non-build tags
All tags
No tags
1997-09-26
1997-09-26 18:09:31 by Henrik Grubbström (Grubba) <grubba@grubba.org>
b8e11aee53ff0078817156098731338f2ce0331b (
13
lines) (+
7
/-
6
)
[
Show
|
Annotate
]
Branch:
5.2
Fixed bug.
Rev: server/modules/graphics/graphic_text.pike:1.83
1:
-
constant cvs_version="$Id: graphic_text.pike,v 1.
82
1997/09/26
17
:
49
:
20
grubba Exp $";
+
constant cvs_version="$Id: graphic_text.pike,v 1.
83
1997/09/26
18
:
09
:
31
grubba Exp $";
constant thread_safe=1; #include <module.h>
812:
{ int id; sscanf(f,"%d/%s", id, f);
+
if (sizeof(f)) {
object g;
-
if (sizeof(indices(g=Gz))) {
-
catch(f = g->inflate()->inflate(MIME.decode_base64(f)));
-
} else if (sizeof(f)) {
+
if (f[0] == '$') { // Illegal in BASE64 f = f[1..];
-
} else {
+
} else
if (sizeof(indices(g=Gz)))
{
+
catch(f = g->inflate()->inflate(MIME.decode_base64(f)));
+
} else if (sizeof(f)) {
catch(f = MIME.decode_base64(f)); } }