PHP 4.0 Bug #7846: Single quotes replaced by double quotes only if cookies are not accepted

From: Date: Thu, 16 Nov 2000 16:33:51 +0000
Subject: PHP 4.0 Bug #7846: Single quotes replaced by double quotes only if cookies are not accepted
Groups: php.dev 
Request: Send a blank email to php-dev+get-38355@lists.php.net to get a copy of this message
From: s.meier@comcity.de Operating system: Linux PHP version: 4.0.3pl1 PHP Bug Type: *General Issues Bug description: Single quotes replaced by double quotes only if cookies are not accepted 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 -- Edit Bug report at: http://bugs.php.net/?id=7846&edit=1

« previous php.dev (#38355) next »