From: Jerome Jutteau Date: Wed, 13 Feb 2013 11:39:18 +0000 (+0000) Subject: Fix input sanitize in scripting interface X-Git-Tag: 1.1~214 X-Git-Url: https://git.p6c8.net/jirafeau.git/commitdiff_plain/3221172a6d3e623090449000b4f541849bc9f9a5?ds=inline Fix input sanitize in scripting interface --- diff --git a/lib/functions.php b/lib/functions.php index d70a17c..87d2cff 100755 --- a/lib/functions.php +++ b/lib/functions.php @@ -801,9 +801,10 @@ jirafeau_async_init ($filename, $type, $one_time, $key, $time, $ip) $p .= $ref; $handle = fopen ($p, 'w'); fwrite ($handle, - 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); + 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 ;