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

From: Date: Fri, 17 Nov 2000 17:06:19 +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-38441@lists.php.net to get a copy of this message
ID: 7846 Updated by: sniper Reported By: s.meier@comcity.de Status: Open Bug Type: *Session related Assigned To: Comments: reclassified as session related. Previous Comments: --------------------------------------------------------------------------- [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

« previous php.dev (#38441) next »