Received: by taz.hyperreal.com (8.8.4/V2.0) id JAA00679; Tue, 4 Mar 1997 09:05:31 -0800 (PST) Received: from luers.qosina.com by taz.hyperreal.com (8.8.4/V2.0) with ESMTP id JAA00572; Tue, 4 Mar 1997 09:05:21 -0800 (PST) Received: (from awm@localhost) by luers.qosina.com (8.8.5/8.8.5) id MAA09833 for new-httpd@hyperreal.com; Tue, 4 Mar 1997 12:04:38 -0500 From: Aram Mirzadeh Message-Id: <199703041704.MAA09833@luers.qosina.com> Subject: [BUG]: "patch for imagemap prob with frontpage " on Linux (fwd) To: new-httpd@hyperreal.com (apache Group) Date: Tue, 4 Mar 1997 12:04:38 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com No ack. tem@global2000.net said: > From nobody@hyperreal.com Tue Mar 4 11:57:13 1997 > Message-Id: <199703041657.IAA29062@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. */