php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41600 url rewriter tags doesn't work with special chars
Submitted: 2007-06-05 18:00 UTC Modified: 2007-07-13 10:59 UTC
Votes:7
Avg. Score:4.6 ± 0.7
Reproduced:6 of 6 (100.0%)
Same Version:5 (83.3%)
Same OS:5 (83.3%)
From: jonathanl at olx dot com Assigned: iliaa (profile)
Status: Closed Package: Session related
PHP Version: 4.4.7 OS: Linux
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: jonathanl at olx dot com
New email:
PHP Version: OS:

 

 [2007-06-05 18:00 UTC] jonathanl at olx dot com
Description:
------------
When my HTML has tags like <emv:a href="somepage.php">A link</emv:a> the url rewriter doesn't recognize them even if I add emv:a=href to the url_rewriter.tags configuration in my php.ini.
Removing :a and leaving it like <emv href="somepage.php">A link</emv> and changing url_rewriter.tags to emv=href works fine.
So I assume it has to be something related to how PHP is replacing tags.

Reproduce code:
---------------
Put some special tag in your HTML, like: 

<emv:a href="somepage.php">A Link</emv:a>

And add emv:a=href to your url_rewriter.tags in php.ini

Expected result:
----------------
<emv:a href="somepage.php?PHPSESSID=357eb0100a8e98561101f01bd8205ce4">A Link</emv:a>

Actual result:
--------------
<emv:a href="somepage.php">A Link</emv:a>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-06-06 00:01 UTC] iliaa@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 [2007-06-07 12:15 UTC] jonathanl at olx dot com
It is not working on the 4.4.7 PHP version.
 [2007-07-11 13:24 UTC] jonathanl at olx dot com
The PHP snapshot you are saying are version 5.x version, is it possible to have this fixed on 4.x version?
 [2007-07-13 10:59 UTC] jani@php.net
No.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 11:01:29 2024 UTC