From: hickert Date: Wed, 17 Nov 2010 09:16:13 +0000 (+0000) Subject: Updated handling of uploaded files, thanks to bcooksley X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3cd7d258f35fe651c82d9fc4cc4be7026f423190;p=gosa.git Updated handling of uploaded files, thanks to bcooksley git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20258 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/ssh/personal/ssh/class_sshPublicKey.inc b/gosa-plugins/ssh/personal/ssh/class_sshPublicKey.inc index e478d329b..c451aa44a 100644 --- a/gosa-plugins/ssh/personal/ssh/class_sshPublicKey.inc +++ b/gosa-plugins/ssh/personal/ssh/class_sshPublicKey.inc @@ -122,7 +122,7 @@ class sshPublicKey extends plugin msg_dialog::display(_("Upload error"), _("Error uploading the key!")." (".$_FILES['key']['error'].")", ERROR_DIALOG); } else { - $lines= file($_FILES['key']['tmp_name']); + $lines= gosa_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]));