/* file informations */
$md5 = md5_file ($file['tmp_name']);
- $name = trim ($file['name']);
+ $name = str_replace (NL, '', trim ($file['name']));
$mime_type = $file['type'];
$size = $file['size'];
$p .= $ref;
$handle = fopen ($p, 'w');
fwrite ($handle,
- $filename . NL. $type . NL. $password . NL. $time . NL .
- ($one_time ? 'O' : 'R') . NL . $ip . NL . date ('U') . NL .
- $code . NL);
+ str_replace (NL, '', trim ($filename)) . NL .
+ str_replace (NL, '', trim ($type)) . NL . $password . NL .
+ $time . NL . ($one_time ? 'O' : 'R') . NL . $ip . NL .
+ date ('U') . NL . $code . NL);
fclose ($handle);
return $ref . NL . $code ;