[freeside-commits] branch FREESIDE_4_BRANCH updated. 9937efbc70996ccd9ccf6b340af0718bc3cd6db2
Ivan
ivan at 420.am
Mon Jul 24 14:02:59 PDT 2017
The branch, FREESIDE_4_BRANCH has been updated
via 9937efbc70996ccd9ccf6b340af0718bc3cd6db2 (commit)
from 8741aff54c6fd4a9fa8c9a1fc6da8a7e68c4b496 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 9937efbc70996ccd9ccf6b340af0718bc3cd6db2
Author: Ivan Kohler <ivan at freeside.biz>
Date: Mon Jul 24 14:02:58 2017 -0700
scalar param
diff --git a/httemplate/edit/process/cust_main_attach.cgi b/httemplate/edit/process/cust_main_attach.cgi
index 20673dc..cdf93ce 100644
--- a/httemplate/edit/process/cust_main_attach.cgi
+++ b/httemplate/edit/process/cust_main_attach.cgi
@@ -51,7 +51,7 @@ if($attachnum) {
('_date', 'otaker', 'body', 'disabled');
$new->filename($filename || $old->filename);
$new->mime_type($cgi->param('mime_type') || $old->mime_type);
- $new->title($cgi->param('title'));
+ $new->title( scalar($cgi->param('title')) );
if($delete and not $old->disabled) {
$new->disabled(time);
}
@@ -65,8 +65,10 @@ else { # This is a new attachment, so require a file.
if($filename) {
$new->filename($filename);
# use the original filename here, not the stripped form
- $new->mime_type($cgi->uploadInfo($cgi->param('file'))->{'Content-Type'});
- $new->title($cgi->param('title'));
+ $new->mime_type(
+ $cgi->uploadInfo( scalar($cgi->param('file')) )->{'Content-Type'}
+ );
+ $new->title( scalar($cgi->param('title')) );
local $/;
my $fh = $cgi->upload('file');
-----------------------------------------------------------------------
Summary of changes:
httemplate/edit/process/cust_main_attach.cgi | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
More information about the freeside-commits
mailing list