summaryrefslogtreecommitdiff
path: root/LedgerSMB/Form.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/Form.pm')
-rwxr-xr-xLedgerSMB/Form.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index a3005ee9..94f21142 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -321,6 +321,8 @@ sub redirect {
if ($self->{callback}) {
my ($script, $argv) = split(/\?/, $self->{callback});
+ $self->error($locale->text("Invalid redirect")) unless
+ grep {/$script/} @{LedgerSMB::Sysconfig::scripts};
exec ("perl", $script, $argv);
} else {