Ask a Question related to PHP Bugs, Design and Development.
-
serkan dot kibritoglu at gmail dot com #1
#37488 [Opn->Bgs]: Modifing GPC values
ID: 37488
User updated by: serkan dot kibritoglu at gmail dot com
Reported By: serkan dot kibritoglu at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Variables related
Operating System: winXP
PHP Version: 5.2.0
New Comment:
I am terribly sorry.
Since the $value contains original, this was such an amateurish bug
report.
Previous Comments:
------------------------------------------------------------------------
[2007-03-11 07:34:31] serkan dot kibritoglu at gmail dot com
I am sorry to re-open this bug but it is very very similar to this
one.
Reproduce code:
---------------
foreach($_POST as $key => $value) {
$_POST[$key] = trim($value);
$_POST[$key] = strip_tags($value);
$_POST[$key] = mysql_real_escape_string($value);
}
Expected result:
----------------
The code above should; trim, strip_tags and mysql_real_escape_string to
the original values but it only applies the last function in foreach,
which is mysql_real_escape_string.
When i replace the trim() line to the end, it only trims and so on..
I think same goes for _GET and _COOKIE values as well.
------------------------------------------------------------------------
[2006-06-05 16:02:40] [email]iliaa@php.net[/email]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
[url]http://www.php.net/manual/[/url] and the instructions on how to report
a bug at [url]http://bugs.php.net/how-to-report.php[/url]
Only the actual values supplied via GPC can be imported.
------------------------------------------------------------------------
[2006-05-18 07:01:11] serkan dot kibritoglu at gmail dot com
Description:
------------
Very simple logic. Here you go;
Reproduce code:
---------------
if($_GET['param']=='') $_GET['param'] = "I am changed forever.";
echo "Should print: " . $_GET['param'] . "<br>\n";
import_request_variables("g", "g_");
echo "And... !: " . $g_param . "<br>\n";
Expected result:
----------------
Should print: I am changed forever.
And... !: I am changed forever.
Actual result:
--------------
Should print: I am changed forever.
And... !:
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=37488&edit=1[/url]
serkan dot kibritoglu at gmail dot com Guest
-
#37488 [Bgs->Opn]: Modifing GPC values
ID: 37488 User updated by: serkan dot kibritoglu at gmail dot com -Summary: import_request_variables doesnt work with... -
read row values from datagrid and populate in new datagrid values from connected
Hello, i am new in asp.net and i am having a question: I am having a datagrid_1 in which i am showing the context of PatientDetails table.... -
how to get URL values into swf - pls help me
<PARAM NAME="movie" VALUE="Game.swf?action="<%Response.Write(sAction);%>" <PARAM NAME="quality" VALUE="high"> <PARAM NAME="bgcolor" VALUE="#FFFFFF"... -
Why don?t the location values in the Sprite Overlay agree with the values
I would expect the left,top,right bottom values for a sprite that appear underneath it on the stage when you click on it to agree with the l,t,r,b... -
Adding custom values and database values to DropDwonList
The other way is to create a DataTable, put the --None-- as the first Row, then read the datareader into the DataTable, and append the --other-- at...



Reply With Quote

