Closed Bug 287077 Opened 20 years ago Closed 20 years ago

img tag send an invalid request to the image host file

Categories

(Firefox :: General, defect)

1.0 Branch
x86
Windows 2000
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 225554

People

(Reporter: sirber, Assigned: bugzilla)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1

An empty src tag in img, mozilla make a call on the current page (invisible, no
reload) which can execute server-side scripts which aren't supposed to get executed.

Reproducible: Always

Steps to Reproduce:
1. Create a php page which load an empty img script
2. In the php page, make it appen in a file when the php script runs
3. Load the php page

Actual Results:  
You should 2 lines in the saved file

Expected Results:  
1 line (for 1 execution)

Moving from <img src=""> to <img> fix the problem
After some debugging, in a page (1) which got varaibles from a post and have an
image, first load firefox send a POST on the page (1) (which is normal). If I
refresh or post elsewhere, firefox send a GET to page (1) then a POST for page
(1) if it's a refresh or on another page (if it's a page change).

I know this is wierd, feel free to contact me on my email address for more
informations.
Severity: minor → major
Summary: img src="" fetch the current loaded page → img tag send an invalid request to the image host file
Version: unspecified → 1.0 Branch

*** This bug has been marked as a duplicate of 225554 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.