From dcc4469844f8ce98bd8323b684e40cf64643e5ae Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 10 Sep 2014 16:32:28 +0200 Subject: Don't init output in CLI mode Fixes infinite recurssion on raise_error() call when executing scripts out of the INSTALL_PATH. Also use 'rcube' if 'rcmail' is not needed. --- bin/decrypt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/decrypt.sh') diff --git a/bin/decrypt.sh b/bin/decrypt.sh index ff7c43038..7f83f3a7f 100755 --- a/bin/decrypt.sh +++ b/bin/decrypt.sh @@ -60,7 +60,7 @@ if ($argc < 2) { die("Usage: " . basename($argv[0]) . " encrypted-hdr-part [encrypted-hdr-part ...]\n"); } -$RCMAIL = rcmail::get_instance(); +$RCMAIL = rcube::get_instance(); for ($i = 1; $i < $argc; $i++) { printf("%s\n", $RCMAIL->decrypt($argv[$i])); -- cgit v1.2.3