diff options
Diffstat (limited to 'config/autoconfigbackup/crypt_acb.php')
-rw-r--r-- | config/autoconfigbackup/crypt_acb.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/config/autoconfigbackup/crypt_acb.php b/config/autoconfigbackup/crypt_acb.php index 804b6a41..49a2147a 100644 --- a/config/autoconfigbackup/crypt_acb.php +++ b/config/autoconfigbackup/crypt_acb.php @@ -73,11 +73,11 @@ } function encrypt_data(& $data, $pass) { - return base64_encode(crypt_data($data, $pass, "-e")); + return trim(base64_encode(crypt_data($data, $pass, "-e"))); } function decrypt_data(& $data, $pass) { - return crypt_data(base64_decode($data), $pass, "-d"); + return trim(crypt_data(base64_decode($data), $pass, "-d")); } function tagfile_reformat($in, & $out, $tag) { @@ -93,7 +93,9 @@ $oset += $size; } - $out .= "---- END {$tag} ----\n"; + $out .= "---- END {$tag} ----"; + + $out = trim($out); return true; } @@ -119,6 +121,8 @@ $out = substr($in, $body_pos, $body_len); + $out = trim($out); + return true; } |