/* 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 .
+ str_replace (NL, '', trim ($filename)) . NL. trim ($type) . NL. $password . NL. $time . NL .
($one_time ? 'O' : 'R') . NL . $ip . NL . date ('U') . NL .
$code . NL);
fclose ($handle);
break;\r
}\r
echo jirafeau_async_init ($_POST['filename'],\r
- $type,\r
- isset ($_POST['one_time_download']),\r
- $key,\r
- $time,\r
- $_SERVER['REMOTE_ADDR']);\r
+ $type,\r
+ isset ($_POST['one_time_download']),\r
+ $key,\r
+ $time,\r
+ $_SERVER['REMOTE_ADDR']);\r
}\r
/* Continue an asynchronous upload. */\r
elseif (isset ($_GET['push_async']))\r