php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19233 Anchor tag parsing bug
Submitted: 2002-09-04 16:02 UTC Modified: 2002-09-12 15:46 UTC
From: phpbug at cycleburner dot org Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.2.2 OS: Any
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: phpbug at cycleburner dot org
New email:
PHP Version: OS:

 

 [2002-09-04 16:02 UTC] phpbug at cycleburner dot org
When the first character of an anchor tag's contents is a '-', the last character of the contents gets replaced with a '>'.

Example:
<html>
<a>-bc</a>
</html>

In this example the 'c' is replaced with a '>'.
Remove <html> from this example, or put any other character before the '-', and the 'c' will remain unchanged.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-05 20:20 UTC] yohgaki@php.net
It sounds like trans-sid problem.
Need more details what you are doing.

What are you doing when you see this problem?
Use latest PHP source always with ZE2.
 [2002-09-06 03:56 UTC] phpbug at cycleburner dot org
Just create a file test.php containing this minimalized example:
<html>
<a>-bc</a>
</html>
You will see that PHP changes the 'c' into a '>'.

I'm sorry if I filed this bug under the wrong category... It seems to be Zend related, but I'm using Zend version 1.2.0.

I have observed this bug in PHP4.2.2 on both Windows and Linux.
I too suspect this has something to do with trans-sid, but setting session.use_trans_sid = 0 makes no difference.
 [2002-09-06 05:54 UTC] sniper@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

I can not reproduce this with PHP 4.2.3 or PHP 4.3.0-dev
(using the default php.ini-dist)

 [2002-09-12 15:46 UTC] phpbug at cycleburner dot org
This looked like a PHP bug because it was reproducible on different servers and in different browsers, but it turned out to be Norton Security that was interfering...
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 13:00:02 2026 UTC