php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21187 unexpected removing of double quotes
Submitted: 2002-12-26 03:47 UTC Modified: 2002-12-26 13:18 UTC
From: hadrien dot nilsson at sinapse dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.2.1 OS: Windows 2000 server
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hadrien dot nilsson at sinapse dot com
New email:
PHP Version: OS:

 

 [2002-12-26 03:47 UTC] hadrien dot nilsson at sinapse dot com
Just copy and paste the above content into a new php page :

<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Bugland with double quotes</title>
</head>

<body>

<!-- Fails with PHP 4.2.1 Build (May 12 2002 23:51:56) -->
<!-- Unexpected : all ending double quotes are removed ! Result : 

<a href="javascript:DoSomething('123', 'abc\"defghi\jkl');>bugland</a>

-->

<a href="javascript:DoSomething('123', 'abc\"defghi\"jkl');">bugland</a>

</body>
</html>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-26 03:59 UTC] hadrien dot nilsson at sinapse dot com
Of course read "below" instead of "above" :)
Merry Christmas !
 [2002-12-26 04:46 UTC] derick@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip
 [2002-12-26 07:42 UTC] hadrien dot nilsson at sinapse dot com
I found the origin of the bug.

It doesn't occurs in PHP, it comes from my browsers when you display the page source : Phoenix 0.5 and Mozilla browser 1.2.1.

The bug #21187 can be closed.
 [2002-12-26 10:29 UTC] hadrien dot nilsson at sinapse dot com
-- Closed --
 [2002-12-26 13:18 UTC] derick@php.net
not a bug -> bogus
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 13:01:27 2024 UTC