Mailing List Archive

Apache 0.8.8 internal imagemap support (fwd)
I get the impression that this guy has something misconfigured and
is trying to hack is way out of the mess.

Skip this mail now if you're not a imagemap guru.


rob


Forwarded message:
> From pyk@vtcom.fr Sat Aug 19 05:33:45 1995
> Date: Sat, 19 Aug 1995 14:30:11 +0100
> From: pyk@vtcom.fr (Pierre-Yves Kerembellec)
> Message-Id: <9508191330.AA06959@gotha>
> Subject: Apache 0.8.8 internal imagemap support
> Apparently-To: apache-bugs@apache.org
>
>
> Hi !
>
> First, I'd like to congratulate you on the Apache server : that's really a
> great piece of code, and most of all, it's free ;-) (ahem, well, let's not
> bash N*tsite too much ...)
>
> I discovered the Apache server a few weeks ago and was delighted by all the
> built-in fonctionnalities, one of them being internal "maps" support. But it
> didn't seem to work, so I went into the code and discovered that there were
> no "type_checker" function in the module "mod_imap.c" ... so here is a little
> fix to have the imagemap internal support working :
>
> ===============================================================================
> At the end of the module "mod_imap.c", the handlers are like this :
>
> > module imap_module = {
> > STANDARD_MODULE_STUFF,
> > ...
> > NULL, /* check access */
> > NULL, /* type_checker */
> > NULL, /* fixups */
> > ...
>
> but should look like this :
>
> > module imap_module = {
> > STANDARD_MODULE_STUFF,
> > ...
> > NULL, /* check access */
> > type_imap, /* type_checker */
> > NULL, /* fixups */
> > ...
>
> and the code for the "type_imap" function is as following :
>
> > int type_imap (request_rec *r)
> > {
> > if (r->path_info[0]==0) {
> > if (strcasecmp(r->uri+strlen(r->uri)-4,".map"))
> > return DECLINED;
> > }
> > else
> > if (strcasecmp(r->path_info+strlen(r->path_info)-4,".map"))
> > return DECLINED;
> > r->content_type = IMAP_MAGIC_TYPE;
> > return OK;
> > }
> ===============================================================================
>
> Of course, the map detection method is not optimal (just looking at the end
> of the uri to see if we detect a ".map" extension), but this was a little &
> quick dirty hack ... :)
> Now, it works fine (and fast), without the need of the external CGI
> "imagemap" program (the correct value in the content_type field of the request
> structure is now "application/x-http-imap") ... hope this will help ...
>
> By the way, is there a mailing list or a newsgroup for the Apache Project ?
> Do you plan to support SSL and SHTTP (even if cracked a few days ago), or
> something equivalent for secure transactions ? (I saw you removed encryption
> to suit US laws about weapons exporting, but who knows ...)
>
> Anyway, keep on the good work !
>
> Pierre-Yves Kerembellec
> VTCOM - Network / Security / WWW Servers - France
>