PHP 4.0 Bug #4979: rawURLdecode completely screws some strings

From: Date: Mon, 12 Jun 2000 14:07:06 +0000
Subject: PHP 4.0 Bug #4979: rawURLdecode completely screws some strings
Groups: php.dev 
Request: Send a blank email to php-dev+get-21096@lists.php.net to get a copy of this message
From: vigna@dsi.unimi.it Operating system: RedHat Linux PHP version: 4.0.0 Release PHP Bug Type: Misbehaving function Bug description: rawURLdecode completely screws some strings <?php $k =" categoria%5B%5D"; rawURLdecode($k); print strlen($k).$k; ?> This script prints 16 categoria[] which of course is nonsense, as $k has been altered and moreover is not 16 chars long. Trying to insert $k in any print string result in the printing being truncated. This was fairly difficult to track down and should be fixed ASAP, as rawURLdecode is a very basic function.

« previous php.dev (#21096) next »