fprintf ( $log, "contents from an unrecognized IP address was truncated to %d bytes\n",$limit_bytes);
$truncated=TRUE;
$uploaded_size=$limit_bytes;
+ } else {
+ $truncated=FALSE;
}
fprintf( $log, "-----------------\n\n" );
fclose($uploaded);
fwrite($log,$contents);
if ($truncated)
- fwrite ($log, " ..<truncated>..\n");
+ fwrite ($log, " ..<" . "truncated" . ">..\n");
fclose($log);
////////////////////////////////////////