Bug #16027 Updated: decoding of GET-parameter %D0%27 fails

From: Date: Tue, 12 Mar 2002 23:35:46 +0000
Subject: Bug #16027 Updated: decoding of GET-parameter %D0%27 fails
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-2331@lists.php.net to get a copy of this message
ID: 16027 Updated by: sniper@php.net Reported By: schmidt@bcc.de -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: Linux PHP Version: 4.1.2 New Comment: Check your php.ini..you have 'magic_quotes_gpc=On' there. Turn it off and you won't see the slash. Not a bug but expected behaviour. --Jani Previous Comments: ------------------------------------------------------------------------ [2002-03-12 18:28:08] schmidt@bcc.de After decoding a GET-request containing %D0%27 an extraneous \ is inserted between the two characters. This may easily reproduced by calling a PHP-page containing phpinfo(), calling it with ?request=%D027 ad taking a look at the "PHP Variables" section. _GET["request"] Ð\'  _SERVER["REQUEST_METHOD"] GET  _SERVER["QUERY_STRING"] request=%D0%27  _SERVER["REQUEST_URI"] /bla.php?request=%D0%27 For your convenience I've added some more lines from the output: _SERVER["SERVER_SOFTWARE"] Apache/1.3.23 (Unix) mod_ssl/2.8.7 OpenSSL/0.9.6b PHP/4.1.2  Configure Command './configure' '--with-pgsql' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--without-mysql' '--enable-sysvshm' '--enable-sysvsm' '--with-config-file-path=/usr/local/apache' '--enable-track-vars' '--enable-force-cgi-redirect' '--with-gettext' '--enable-inline-optimization' I've seen the bug the first time with PHP 4.0.6,then checked against PHP 4.1.2. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16027&edit=1

« previous php.bugs (#2331) next »