From 49e5aa783dd77f3b3a1b353c4dd419b076589cdb Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Sat, 27 Feb 2010 22:26:34 +0100 Subject: [PATCH] Fixed to correctly write into the temp folder. --- src/IDF/Form/UserAccount.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IDF/Form/UserAccount.php b/src/IDF/Form/UserAccount.php index 2f33370..7954f7e 100644 --- a/src/IDF/Form/UserAccount.php +++ b/src/IDF/Form/UserAccount.php @@ -210,7 +210,7 @@ class IDF_Form_UserAccount extends Pluf_Form throw new Pluf_Form_Invalid(__('The format of the key is not valid. It must start with ssh-dss or ssh-rsa, a long string on a single line and at the end a comment.')); } if (Pluf::f('idf_strong_key_check', false)) { - $tmpfile = Pluf::f('tmp_folder', '/tmp').$user.'-key'; + $tmpfile = Pluf::f('tmp_folder', '/tmp').'/'.$user.'-key'; file_put_contents($tmpfile, $key, LOCK_EX); $cmd = Pluf::f('idf_exec_cmd_prefix', ''). 'ssh-keygen -l -f '.escapeshellarg($tmpfile).' > /dev/null 2>&1';