#19358 [NEW]: URL Rewriter Blindly Replaces All Links
| From: | adam at cryptocomm dot com | Date: | Wed, 11 Sep 2002 15:11:30 +0000 |
| Subject: | #19358 [NEW]: URL Rewriter Blindly Replaces All Links | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-19052@lists.php.net to get a copy of this message | ||
From: adam@cryptocomm.com
Operating system: Redhat 7.3
PHP version: 4.2.3
PHP Bug Type: Scripting Engine problem
Bug description: URL Rewriter Blindly Replaces All Links
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(" <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(" <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.
--
Edit bug report at http://bugs.php.net/?id=19358&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19358&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19358&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19358&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19358&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19358&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19358&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19358&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19358&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19358&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19358&r=globals