diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/am.pl | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -3202,6 +3202,8 @@ sub print_recurring { @a = ("perl", "$form->{script}", "action=reprint&module=$form->{module}&type=$form->{type}&login=$form->{login}&path=$form->{path}&sessionid=$form->{sessionid}&id=$form->{id}&formname=$f[$j]&format=$f[$j+1]&media=$media&vc=$form->{vc}&ARAP=$form->{ARAP}"); + $form->error($locale->text('Invalid redirect')) unless + grep {/$form->{script}/} @{LedgerSMB::Sysconfig::scripts}; $ok = !(system(@a)); if ($ok) { @@ -3241,6 +3243,8 @@ sub email_recurring { @a = ("perl", "$form->{script}", "action=reprint&module=$form->{module}&type=$form->{type}&login=$form->{login}&path=$form->{path}&sessionid=$form->{sessionid}&id=$form->{id}&formname=$f[$j]&format=$f[$j+1]&media=email&vc=$form->{vc}&ARAP=$form->{ARAP}&message=$message"); + $form->error($locale->text('Invalid redirect')) unless + grep {/$form->{script}/} @{LedgerSMB::Sysconfig::scripts}; $ok = !(system(@a)); if ($ok) { |