PHP 4.0 Bug #7846 Updated: Single quotes replaced by double quotes only if cookies are not accepted
| From: | stas@php.net | Date: | Sun, 19 Nov 2000 17:04:15 +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-38504@lists.php.net to get a copy of this message | ||
ID: 7846
Updated by: stas
Reported By: s.meier@comcity.de
Status: Feedback
Bug Type: *Session related
Assigned To:
Comments:
Do you have trans-sid feature enabled?
Previous Comments:
---------------------------------------------------------------------------
[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