You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Aram Mirzadeh <aw...@luers.qosina.com> on 1997/03/04 18:04:38 UTC
[BUG]: "patch for imagemap prob with frontpage " on Linux (fwd)
No ack.
tem@global2000.net said:
> From nobody@hyperreal.com Tue Mar 4 11:57:13 1997
> Message-Id: <19...@taz.hyperreal.com>
> From: tem@global2000.net
> To: awm@qosina.com
> Date: Tue Mar 4 8:57:40 1997
> Subject: [BUG]: "patch for imagemap prob with frontpage " on Linux
>
> Submitter: tem@global2000.net
> Operating system: Linux, version: 2.0.29
> Version of Apache Used: 1.2b7
> Extra Modules used: mod_status, mod_log_config
> URL exhibiting problem:
>
> Symptoms:
> --
> This isn't really a serious bug, just an
> incompatibility we noticed between versions of
> mod_imap.c.
>
> When we upgraded from apache 1.0.x to 1.1.x and on
> imagemaps that had previously worked no longer
> functioned properly (they would always return the
> default page). We
> narrowed it down to the fact that MS FrontPage
> generates map files that aren't standard ie:
> rect index.html 2 23 107 89
> instead of
> rect index.html 2,23 107,89
>
> not sure if anyone else ran into the problem or
> not (i couldn't find updates anywhere). the
> following is a diff of the code changes i made to
> get around this:
>
> diff mod_imap.c mod_imap-new.c
> 727,729c727,731
> < while ( vertex < MAXVERTS &&
> < sscanf(string_pos, "%lf, %lf",
> < &pointarray[vertex][X], &pointarray[vertex][Y]) == 2)
> ---
> > while ( vertex < MAXVERTS &&
> > (sscanf(string_pos, "%lf, %lf",
> > &pointarray[vertex][X], &pointarray[vertex][Y]) == 2 ||
> > sscanf(string_pos, "%lf %lf",
> > &pointarray[vertex][X], &pointarray[vertex][Y]) == 2))
>
> a rather stupid fix but it works and it might be
> something that should get fixed somewhere along
> the line.
>
> -tem
>
>
> --
>
> Backtrace:
> --
>
> --
>
--
/*
* Aram Mirzadeh, MIS Manager, Qosina Corp. http://www.qosina.com/~awm/
* Apache Development Team, awm@hyperreal.com http://www.hyperreal.com/
* PGP Key - http://www.qosina.com/~awm/pgpkey.html
* BE 49 9D F6 2A A7 22 FC 02 E9 1E 3D F7 0C 67 A0
*
* I haven't lost my mind -- it's backed up on tape somewhere.
*/
[PATCH] for contrib: Re: [BUG]: "patch for imagemap prob with frontpage " on Linux (fwd)
Posted by Dean Gaudet <dg...@arctic.org>.
This works for me, but is a feature and we're in a feature freeze. So it
should go into contrib. I've turned it into a context-diff and included
it. Unless someone else can show that we're violating some "imap
standard" (hah)...
Dean
On Tue, 4 Mar 1997, Aram Mirzadeh wrote:
>
>
> No ack.
>
> tem@global2000.net said:
> > From nobody@hyperreal.com Tue Mar 4 11:57:13 1997
> > Message-Id: <19...@taz.hyperreal.com>
> > From: tem@global2000.net
> > To: awm@qosina.com
> > Date: Tue Mar 4 8:57:40 1997
> > Subject: [BUG]: "patch for imagemap prob with frontpage " on Linux
> >
> > Submitter: tem@global2000.net
> > Operating system: Linux, version: 2.0.29
> > Version of Apache Used: 1.2b7
> > Extra Modules used: mod_status, mod_log_config
> > URL exhibiting problem:
> >
> > Symptoms:
> > --
> > This isn't really a serious bug, just an
> > incompatibility we noticed between versions of
> > mod_imap.c.
> >
> > When we upgraded from apache 1.0.x to 1.1.x and on
> > imagemaps that had previously worked no longer
> > functioned properly (they would always return the
> > default page). We
> > narrowed it down to the fact that MS FrontPage
> > generates map files that aren't standard ie:
> > rect index.html 2 23 107 89
> > instead of
> > rect index.html 2,23 107,89
> >
> > not sure if anyone else ran into the problem or
> > not (i couldn't find updates anywhere). the
> > following is a diff of the code changes i made to
> > get around this:
> >
> > diff mod_imap.c mod_imap-new.c
> > 727,729c727,731
> > < while ( vertex < MAXVERTS &&
> > < sscanf(string_pos, "%lf, %lf",
> > < &pointarray[vertex][X], &pointarray[vertex][Y]) == 2)
> > ---
> > > while ( vertex < MAXVERTS &&
> > > (sscanf(string_pos, "%lf, %lf",
> > > &pointarray[vertex][X], &pointarray[vertex][Y]) == 2 ||
> > > sscanf(string_pos, "%lf %lf",
> > > &pointarray[vertex][X], &pointarray[vertex][Y]) == 2))
> >
> > a rather stupid fix but it works and it might be
> > something that should get fixed somewhere along
> > the line.
> >
> > -tem
> >
> >
> > --
> >
> > Backtrace:
> > --
> >
> > --
> >
>
>
> --
> /*
> * Aram Mirzadeh, MIS Manager, Qosina Corp. http://www.qosina.com/~awm/
> * Apache Development Team, awm@hyperreal.com http://www.hyperreal.com/
> * PGP Key - http://www.qosina.com/~awm/pgpkey.html
> * BE 49 9D F6 2A A7 22 FC 02 E9 1E 3D F7 0C 67 A0
> *
> * I haven't lost my mind -- it's backed up on tape somewhere.
> */
>