#10599 [Com]: background attribute in the body tag causes a double insert
| From: | php at unreelpro dot com | Date: | Fri, 20 Sep 2002 09:31:54 +0000 |
| Subject: | #10599 [Com]: background attribute in the body tag causes a double insert | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-19854@lists.php.net to get a copy of this message | ||
ID: 10599
Comment by: php@unreelpro.com
Reported By: gkm@duke.edu
Status: Closed
Bug Type: MySQL related
Operating System: linux
PHP Version: 4.0.4pl1
New Comment:
although the link is dead, from zeev's response one can
gather that gkm had a script that was double inserting into
a db because he mistakenly put a color code in the
background tag.
this serves as a good warning not to have a misformed
background attribute in your body tag. i found that just an
empty background attribute (background="") caused a script
to run twice (maybe calling itself?). this caused db
operations to be performed twice.
Previous Comments:
------------------------------------------------------------------------
[2001-05-06 13:24:46] zeev@php.net
Actually, it's a bug in your HTML (although you did confuse me for a
few minutes...)
The attribute you're looking for is bgcolor; background loads a
background image, and expects a URL argument. When you feed it with
#FFFFFF, it tries to access
http://www.dukemarket.com/bug.php#FFFFFF to
load it as a background
image, access the page again, and causes a second insert.
It was a good challenge though :)
------------------------------------------------------------------------
[2001-05-02 03:45:48] gkm@duke.edu
I have documented the problem at <a
href="http://www.dukemarket.com/bug.php">http://www.dukemarket.com/bug.php</a>.
If you have any questions, email me at <a
href="mailto:gkm@duke.edu">gkm@duke.edu</a>.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=10599&edit=1