php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19358 URL Rewriter Blindly Replaces All Links
Submitted: 2002-09-11 10:11 UTC Modified: 2002-10-20 23:20 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: adam at cryptocomm dot com Assigned:
Status: No Feedback Package: Session related
PHP Version: 4.2.3 OS: Redhat 7.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: adam at cryptocomm dot com
New email:
PHP Version: OS:

 

 [2002-09-11 10:11 UTC] adam at cryptocomm dot com
I'm not sure if this is something that can easily be
repaired or what not, but myself and another programmer
ran in to a problem converting some legacy software to
PHP (from an antiquated language called iHTML). We are
using id based sessions throughout the site, and on one
page we have PHP outputing we have a URL which says:

doc.write("&nbsp;<a
href=javascript:top.openHelp('http://help.internetstore.com/" +
foldersNode[4] + "')><img
src='http://assets.internetstore.com/help2.gif' border=0></a> <a
class=mainlink href=\"javascript:top.redrawTree("+ foldersNode[5] +",'"+
foldersNode[6] +"','"+ foldersNode[4] +"','"+ foldersNode[3]
+"')\">"+foldersNode[3]+"</a></td></tr>")

And after the Session URL Rewriter gets through with it, we get:

doc.write("&nbsp;<a
href="javascript:top.openHelp("'http://help.internetstore.com/" +
foldersNode[4] + "')><img
src='http://assets.internetstore.com/help2.gif' border=0></a> <a
class="mainlink"
href="\?sid=47388ff232bb66e8a37d9486502634bf""javascript:top.redrawTree("+ foldersNode[5] +",'"+ foldersNode[6] +"','"+ foldersNode[4] +"','"+ foldersNode[3] +"')\">"+foldersNode[3]+"</a></td></tr>")

And that one throws Javascript errors.
We know we can turn off URL Rewrite on that one page or the entire site, or the entire server, are possibly even use cookies, but it would be nice if it would not attempt to parse it, since it does so incorrectly.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-29 22:14 UTC] iliaa@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-10-20 23:20 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC