summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 44699df)
raw | patch | inline | side by side (parent: 44699df)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 14 Oct 2010 07:56:40 +0000 (07:56 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 14 Oct 2010 07:56:40 +0000 (07:56 +0000) |
-It is now implemented in main.inc for all file uploads
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20041 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20041 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/ssh/personal/ssh/class_sshPublicKey.inc | patch | blob | history |
diff --git a/gosa-plugins/ssh/personal/ssh/class_sshPublicKey.inc b/gosa-plugins/ssh/personal/ssh/class_sshPublicKey.inc
index 610e4d4a5a2ac4ac1c2e6c0e24dc02f6ee9a6b9b..e478d329ba771dee39127431fa15bcc8da445703 100644 (file)
msg_dialog::display(_("Upload error"), _("Error uploading the key!")." (".$_FILES['key']['error'].")", ERROR_DIALOG);
} else {
- // On some systems we can not operate on this tmp file. We need to
- // explicitely copy it first
- $tempfile= tempnam(sys_get_temp_dir(), 'GOsa');
- move_uploaded_file($_FILES['key']['tmp_name'], $tempfile);
- $lines= file($tempfile);
- unlink($tempfile);
-
+ $lines= file($_FILES['key']['tmp_name']);
foreach ($lines as $line) {
if (preg_match('/^(ssh-(dss|rsa))\s+([a-zA-Z0-9+\/.=]+)\s+([[:print:]]+)$/', $line, $match)) {
$fingerprint= $this->fingerprint(base64_decode($match[3]));