diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-04-17 23:31:39 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-04-17 23:31:39 +0000 |
commit | 31e9767cacd197e607c8378f0376e86d70ba1f60 (patch) | |
tree | 080adea6d82e2da091457066692562434e20956c /LedgerSMB | |
parent | bed9fccfc20e4d86fcdea3dc6c6807710b87cdbc (diff) |
Fixing 'Access Denied' when sending email'
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1087 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-x | LedgerSMB/Form.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index c5410ab0..bb0a5ab7 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -609,7 +609,10 @@ sub parse_template { $self->{cwd} = Cwd::getcwd(); for (qw(IN OUT)) { - if ( $self->{$_} =~ m#[:/\\]# ) { + if ( $self->{$_} =~ m#[:/\\]# and + ($self->{$_} != $LedgerSMB::Sysconfig::sendmail and ($_ eq 'OUT'))) + { + $self->error("Access denied"); } } |