PHP 4.0 Bug #7846 Updated: Single quotes replaced by double quotes only if cookies are not accepted
| From: | hholzgra@php.net | Date: | Mon, 20 Nov 2000 11:57:51 +0000 |
| Subject: | PHP 4.0 Bug #7846 Updated: Single quotes replaced by double quotes only if cookies are not accepted | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-38579@lists.php.net to get a copy of this message | ||
ID: 7846
Updated by: hholzgra
Reported By: s.meier@comcity.de
Status: Closed
Bug Type: *Session related
Assigned To:
Comments:
Sascha has already fixed this in CVS
Previous Comments:
---------------------------------------------------------------------------
[2000-11-19 12:04:15] stas@php.net
Do you have trans-sid feature enabled?
---------------------------------------------------------------------------
[2000-11-17 12:06:19] sniper@php.net
reclassified as session related.
---------------------------------------------------------------------------
[2000-11-16 11:33:51] s.meier@comcity.de
in the following script
<?
session_register("CookiesAktiviert");
$CookiesAktiviert=1;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Test</title>
</head>
<body>
<a href='javascript:alert("Hallo Stefan");'>Hallo Stefan</a>
</body>
</html>
the single quotes in the href are replaced by double quotes, if the user does not
accept cookies. If he accepts the cookie set by the session_register function and
then reloads the file (because the seesion-id has already has been written, this
time the function session_register doesen't try to set a cookie), the single quotes
are not replaced (which is the desired behaviour).
magic_quotes_gpc = 1
magic_quotes_runtime = 0
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7846