Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS.   //   // The Roxen WebServer main program.   //   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.862 2004/02/09 18:22:46 wellhard Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.863 2004/02/16 13:41:46 jonasw Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:4171:      mapping low_decode_image(string data, void|mixed tocolor)   {    mapping w = Image._decode( data, tocolor );    if( w->image ) return w;    return 0;   }      constant decode_layers = Image.decode_layers;    - mapping low_load_image(string f, RequestID id) + mapping low_load_image(string f, RequestID id, void|mapping err)   {    string data;    Stdio.File file;    if(id->misc->_load_image_called < 5)    {    // We were recursing very badly with the demo module here...    id->misc->_load_image_called++; -  if(!(data=id->conf->try_get_file(f, id))) +  if(!(data=id->conf->try_get_file(f, id, 0, 0, 0, err)))    {    // This is a major security hole! It can load any (image) file    // in the low-level file system using the server's user privileges.    //    // file=Stdio.File();    // if(!file->open(f,"r") || !(data=file->read()))   #ifdef THREADS    catch    {    string host = "";