aboutsummaryrefslogtreecommitdiffstats
path: root/packages/autoconfigbackup
diff options
context:
space:
mode:
Diffstat (limited to 'packages/autoconfigbackup')
-rw-r--r--packages/autoconfigbackup/crypt_acb.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/packages/autoconfigbackup/crypt_acb.php b/packages/autoconfigbackup/crypt_acb.php
index 3fdfb4f2..804b6a41 100644
--- a/packages/autoconfigbackup/crypt_acb.php
+++ b/packages/autoconfigbackup/crypt_acb.php
@@ -35,13 +35,10 @@
fwrite($fd, $val);
fclose($fd);
exec("/usr/bin/openssl enc {$opt} -aes-256-cbc -in $file.dec -out $file.enc -k {$pass}");
- $myfile = file("$file.enc");
+ $result = file_get_contents("$file.enc");
exec("rm $file");
exec("rm $file.dec");
exec("rm $file.enc");
- while (list($line_num, $line) = each($myfile)) {
- $result .= $line;
- }
return $result;
}