From 794b178dd17a0695ca60ba1bd35dc72bf73ee9d8 Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Fri, 13 Apr 2018 16:57:05 +0200 Subject: [PATCH] TT#35426 get_fax(): fix fax data print into a closed filehandle * in case of a specified fax format (pdf) the temp filehandle had been closed before filled in with data Change-Id: I938cfa47051a525069902f73b83de121838c00bb --- lib/NGCP/Panel/Utils/Fax.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Utils/Fax.pm b/lib/NGCP/Panel/Utils/Fax.pm index 3b7dc6d7f9..22d84c13cd 100644 --- a/lib/NGCP/Panel/Utils/Fax.pm +++ b/lib/NGCP/Panel/Utils/Fax.pm @@ -128,8 +128,8 @@ sub get_fax { return; } binmode $tmp_fh; - close $tmp_fh; print $tmp_fh $item->voip_fax_data->data; + close $tmp_fh; } else { return ($item->voip_fax_data->data, $ext); }