From 1a76d83b4f939165dcd8774d85a37f13c0423dff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mantas=20Mikul=C4=97nas?= Date: Mon, 20 Sep 2021 08:13:05 +0300 Subject: [PATCH] support 'none' compression at privatebin.net --- getpaste | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getpaste b/getpaste index a484d25..1c7f47f 100755 --- a/getpaste +++ b/getpaste @@ -704,7 +704,7 @@ sub unwrap_privatebin_v2 { unless ($mode eq "gcm") { _die("unsupported cipher mode ".$mode); } - unless ($comp eq "zlib") { + unless ($comp =~ /^(none|zlib)$/) { _die("unsupported compression ".$comp); }