Roxen.git / server / modules / graphics / graphic_text.pike

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike: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>   inherit "module";   inherit "roxenlib";      #if efun(_static_modules)   # define map_array Array.map   import Image;   # define Image image
Roxen.git/server/modules/graphics/graphic_text.pike:805:    };    cache_set(key, text, 0);    throw(err);   }         mapping find_file(string f, object rid)   {    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));    }    }       return http_string_answer(write_text(id,f,0,rid), "image/gif");   }   mapping url_cache = ([]);   string quote(string in)   {    string option;