You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ro...@imdb.com> on 1996/11/21 20:37:29 UTC
Re: WWW Form Bug Report: "Digits in imagemap URLs confuse imap handler" on HPUX
Hi,
thanks for the bug report. We'll look into it.
cheers,
rob
snewton@oac.hsc.uth.tmc.edu wrote:
>
>Submitter: snewton@oac.hsc.uth.tmc.edu
>Operating system: HPUX, version:
>Version of Apache Used: 1.1.1
>Extra Modules used:
>URL exhibiting problem: http://oac3.hsc.uth.tmc.edu/~snewton/imap-bug.html
>
>Symptoms:
>--
>You can't have a URL with digits in any imagemap .map file because the imap-handler code stops collecting URL text when it hits a non-alpha.
>
>line 296 of mod_imap.c:
>while ( isalpha(*string_pos) ) {
>
>Therefore, a URL like:
>
>rect http://pubweb.parc.xerox.com/map/db=usa/lat=31.00/lon=-100.00/ht=12/wd=20/a
>ll/grid/color/mark=29.70,-95.39 181,197
>
>won't work.
>
>--
>
>Backtrace:
>--
>
>--
>
--
Rob Hartill. Internet Movie Database Ltd. http://www.imdb.com/
Re: WWW Form Bug Report: "Digits in imagemap URLs confuse imap handler" on HPUX
Posted by Brian Behlendorf <br...@organic.com>.
Hmm, according to my understanding of the code, the only thing "isalpha"
prevents is a non-alpha in the protocol portion of a full URL, i.e.
rect http2://foo/bar
wouldn't work. This code is just a test to see if the URL given is a full or
relative one; when it finds a non-alpha, if it's a ':', it presumes it is an
absolute URL. But since no URL scheme out there uses numbers (yet?!) this is
fine.
At least as best as I can tell; my .map files have files with numbers in them
all over.
Brian
> snewton@oac.hsc.uth.tmc.edu wrote:
> >
> >Submitter: snewton@oac.hsc.uth.tmc.edu
> >Operating system: HPUX, version:
> >Version of Apache Used: 1.1.1
> >Extra Modules used:
> >URL exhibiting problem: http://oac3.hsc.uth.tmc.edu/~snewton/imap-bug.html
> >
> >Symptoms:
> >--
> >You can't have a URL with digits in any imagemap .map file because the imap-handler code stops collecting URL text when it hits a non-alpha.
> >
> >line 296 of mod_imap.c:
> >while ( isalpha(*string_pos) ) {
> >
> >Therefore, a URL like:
> >
> >rect http://pubweb.parc.xerox.com/map/db=usa/lat=31.00/lon=-100.00/ht=12/wd=20/a
> >ll/grid/color/mark=29.70,-95.39 181,197
> >
> >won't work.
--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@organic.com www.apache.org hyperreal.com http://www.organic.com/JOBS