From 1fc99311a54a78a0ed0f1b84e5beda9684d43302 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 17 Apr 2022 14:21:54 -0600 Subject: [PATCH] Update fax_emails.php Added spaces to the code to be more consistent. --- app/fax/fax_emails.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/fax/fax_emails.php b/app/fax/fax_emails.php index 68790fd13e..2590b2a146 100644 --- a/app/fax/fax_emails.php +++ b/app/fax/fax_emails.php @@ -232,7 +232,7 @@ if (is_array($result) && @sizeof($result) != 0) { $fax_message = str_replace("\r\n\r\n", "\r\n", $fax_message); } - //set fax directory (used for pdf creation - cover and/or attachments) + // set fax directory (used for pdf creation - cover and/or attachments) $fax_dir = $_SESSION['switch']['storage']['dir'].'/fax'.(($domain_name != '') ? '/'.$domain_name : null); //handle attachments (if any) @@ -243,11 +243,11 @@ if (is_array($result) && @sizeof($result) != 0) { $fax_file_extension = pathinfo($attachment['name'], PATHINFO_EXTENSION); //block unknown files - if ($fax_file_extension == '') { continue; } + if ($fax_file_extension == '') {continue; } //block unauthorized files if (!$fax_allowed_extension['.' . $fax_file_extension]) { continue; } //support only attachments - //if($attachment['disposition'] != 'attachment') { continue; } + //if($attachment['disposition'] != 'attachment'){ continue; } //store attachment in local fax temp folder $uuid_filename = uuid(); @@ -276,7 +276,7 @@ if (is_array($result) && @sizeof($result) != 0) { $cwd = getcwd(); $included = true; require("fax_send.php"); - if($cwd) { + if($cwd){ chdir($cwd); }