Commit a3db6b1a authored by Leigh Stoller's avatar Leigh Stoller

Fix for changing other persons keys; use target_uid!

parent c986f587
......@@ -243,7 +243,7 @@ if (isset($formfields[usr_key]) &&
#
$formfields[usr_key] = ereg_replace("[\n]", "", $formfields[usr_key]);
$usr_key = $formfields[usr_key];
$addpubkeyargs = "-k $uid '$usr_key' ";
$addpubkeyargs = "-k $target_uid '$usr_key' ";
}
}
......@@ -258,7 +258,7 @@ if (isset($usr_keyfile) &&
$errors["PubKey File"] = "No such file";
}
else {
$addpubkeyargs = "$uid $usr_keyfile";
$addpubkeyargs = "$target_uid $usr_keyfile";
chmod($usr_keyfile, 0640);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment