Re: PHP 4.0 Bug #7253: URL rewriter causing problems
| From: | Sascha Schumann | Date: | Mon, 16 Oct 2000 10:38:35 +0000 |
| Subject: | Re: PHP 4.0 Bug #7253: URL rewriter causing problems | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-35162@lists.php.net to get a copy of this message | ||
On 16 Oct 2000 sean@fojar.com wrote:
> From: sean@fojar.com
> Operating system: RH Linux 6.2 kernel 2.2.16
> PHP version: 4.0.3pl1
> PHP Bug Type: *Session related
> Bug description: URL rewriter causing problems
>
> 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\">";
var x = "<html part1" + "part2>";
In future versions you will be able to set the tags to
rewrite in the configuration file.
- Sascha