|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-03-07 20:56 UTC] sniper@php.net
[2005-03-20 18:04 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 00:00:02 2025 UTC |
Description: ------------ utf8 encoded page, send <input type=text name=foo, if you input ferienh?user and use array = explode(" ",$_REQUEST["foo"]) on that variable you get an array with echo $array[0] displayed in the browser source as ferienh??user instead of ferienhÀuser. echo $_REQUEST["foo"]; displays correctly Same happens if string submitted is "ferienh?user region" so it is not due to the lack of a space in the string. using php5 compiled with latest apache and mysql-support on suse linux 9.0. Reproduce code: --------------- <input type=text name=foo value=''> if($_REQUEST["foo"] != ""){$array = explode(" ",$foo)} Expected result: ---------------- in_array("ferienh?user",$array) == true; Actual result: -------------- As described above in_array does not find the keyword and all browsers do not display $array[0] correctly, although they do for $_REQUEST["foo"] Reason, string gets corrupted.