Closed Bug 199089 Opened 21 years ago Closed 21 years ago

multiple ? in server image map url is truncated/replaced

Categories

(Core :: Layout, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 185169

People

(Reporter: riseofthethorax, Assigned: hewitt)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312

This may be more of a hack, but I figured out a way to use "ismap" in a "<img>" 
tag to collect coordinate information from a clicked-on image, then I determined
I needed a way to collect info about the image.. I hacked "?stuffhere?" into the
url. It works fine on IE, but Mozilla parses it out.. I'm using this feature to
support a visual documenting open source app I'm writing that would allow users
to visually document any interface. But without this feature on mozilla I will
have to tell users to use IE.. 

Reproducible: Always

Steps to Reproduce:
1. create a <a href="myscript?myvars"><img src="" ismap></a> in your html..  
2. click on the image.. that will produce a url like "myscript?myvars?123,456"
in IE but not in Mozilla.. 
3. you will see in mozilla "myscript?123,456". 

Actual Results:  
Well my program uses the vars in between the "?" marks, to name the image 
that is fedback into the browser.. So what I'm doing is taking the corrdinates
and generating a new image, but after the ismap click I need to know what image
that was on, so I put the image name in the "vars" (urlencoded with php). Then I
take the URL and parse out the vars, obtain the image name, load it in and mark
the coordinates on teh image.. This allows me to create a push/pull style server
side app with a graphical interface. in IE it works, but in Mozilla I get a
blank image when the ismap image is clicked on, because the vars are discarded
which name the image that was clicked... 

Expected Results:  
To see receive the vars between the "?" marks intact.. 

How I woudl solve this if I were 
programming it is I would get the code that parses the URL and asjust it to 
ignore the n-1 occurences of "?" in the URL and parse the last "?" with its
following information.. 

If we were using perl:

if ($url =~ /([^?]+)[?](.*)$/) { $scripturl = $1 ; $ vars = $2 }

rather than 

if ($url =~ /([^?]+).*[?]([^?]+)$/) { $scripturl = $1 ; $vars = $2 }
This is a duplicate of bug 185169 which as a patch that didn't make it into 1.3.

*** This bug has been marked as a duplicate of 185169 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Component: URL Bar → Layout
Resolution: --- → DUPLICATE
Summary: In IE you can have multiple "?" in Mozilla this behaviour is not maintained and truncated. → multiple ? in server image map url is truncated/replaced
You need to log in before you can comment on or make changes to this bug.