#7253 [Com]: URL rewriter causing problems
| From: | no at emailaddress dot com | Date: | Sun, 27 Apr 2003 23:42:37 +0000 |
| Subject: | #7253 [Com]: URL rewriter causing problems | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-38524@lists.php.net to get a copy of this message | ||
ID: 7253
Comment by: no at emailaddress dot com
Reported By: sean at fojar dot com
Status: Closed
Bug Type: *Session related
Operating System: RH Linux 6.2 kernel 2.2.16
PHP Version: 4.0.3pl1
New Comment:
It happens to me to! my site is very complex and all of it is
javascript.
like he said earlier:
[5 Feb 6:54pm CST] xanthor at xanthor dot tk
The bug exists also with hyperlinks tag
For exemple :
If I write :
<script type="text/javascript">
<!--
pipo = '<a href=\"bla\">plop</a>';
-->
</script>
I obtain :
<script type="text/javascript">
<!--
pipo = '<a href=\"bla\"?PHPSESSID=******>plop</a>';
-->
i get the ?PHPSESSID after the \"
also, i cant seem to disable the url_rewriter.tags
i leave it as
url_rewriter.tags = ""
or i commment it ou but it still wont work
the serious problem are the forms
it adds a hidden tag with quotes that mess up my javascript
please help me on these 2 problems
thank you
Previous Comments:
------------------------------------------------------------------------
[2003-02-05 18:54:34] xanthor at xanthor dot tk
The bug exists also with hyperlinks tag
For exemple :
If I write :
<script type="text/javascript">
<!--
pipo = '<a href=\"bla\">plop</a>';
-->
</script>
I obtain :
<script type="text/javascript">
<!--
pipo = '<a href=\"bla\"?PHPSESSID=******>plop</a>';
-->
------------------------------------------------------------------------
[2000-10-16 14:14:54] sas@php.net
The rewriter has been changed to not rewrite <img> tags by default.
That is user configurable now.
------------------------------------------------------------------------
[2000-10-16 13:14:00] sean at fojar dot com
The fact that the URL rewriter for transparent session ID propagation
now apparently replaces single quotes with double quotes and appends
the session ID to IMG tags is causing problems with JavaScript.
For example, the line:
var x = "<img src='test.jpg'>";
is re-written as:
var x = "<img src="test.jpg?PHPSESSID=blah">";
and the browser's JavaScript interpreter thinks that the question mark
indicates a conditional.
If I try and use escaped doublequotes instead, i.e.:
var x = "<img src=\"test.jpg\">";
it is re-written as:
var x = "<img src="\?PHPSESSID=blah""test.jpg\">";
This happens with PHP 4.0.3 and 4.0.3pl2. I'm using apache 1.3.14 and
mod_ssl 2.7.0 compiled against OpenSSL 0.9.6.
I'm using the stock php.ini-optimized, the only things I've changed in
it are the Register Globals option (turned it on), the include_path
(set it to /usr/local/apache/htdocs/include), and session.use_trans_sid
(turned it on).
This bug creates JavaScript errors in both Netscape and IE.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=7253&edit=1