|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-07-22 09:32 UTC] robin at newloop dot com
Description:
------------
On requesting POST data using $_POST or $_REQUEST that
is being sent using Macromedia Flash MX, the last
character of the last request is missing. Work around
is to send a dummy variable as the last request.
Reproduce code:
---------------
<?
$filePath = stripslashes($_REQUEST["cmsFilePath"]);
$fileDataTotal = stripslashes($_REQUEST["cmsFileDataTotal"]);
$fileData = " ";
for ($counter = 0; $counter < $fileDataTotal; $counter ++){
$newPart = stripslashes($_REQUEST["cmsFileData".$counter]);
$fileData = $fileData.$newPart;
}
$fileName = stripslashes($_REQUEST["cmsFileName"]);
$test = stripslashes($_REQUEST["cmstest"]);
$start = time();
while (time()<($start +5)) {
}
$tfile = $filePath."/".$fileName;
touch($tfile);
chmod($tfile, 0666);
$handle = fopen($tfile, "wb");
fwrite($handle, $fileData.$test);
fclose($handle);
?>
Expected result:
----------------
the $test variable should contain the string "hello"
Actual result:
--------------
the $test variable actually contains "hell"
All other variables are ok.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
<?php var_dump(ini_get("register_globabls")); ?> Will tell you if you have register_globals enabled. As for the space, make sure you have no spaces before the <?php (or <?) in your script.