summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-07-13 15:25:51 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-07-13 15:25:51 +0000
commit47edd3e44422e3c6f14494681322b5af4c97689e (patch)
tree0138be8bcb7149edfccb9ffc2b11d88abb4608e8
parentcbb032386383cb28d35c57cc8e2da79f71e6fb17 (diff)
Adjusting Form's constructor
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1393 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-xLedgerSMB/Form.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index b7a33278..133c5f23 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -96,12 +96,17 @@ sub new {
{
$self->error( 'Access Denied', __line__, __file__ );
}
-
+
if ( ( $self->{action} =~ /(:|')/ ) || ( $self->{nextsub} =~ /(:|')/ ) ) {
$self->error( "Access Denied", __line__, __file__ );
}
for ( keys %$self ) { $self->{$_} =~ s/\N{NULL}//g }
+
+ if ( ($self->{action} eq 'redirect') || ($self->{nextsub} eq 'redirect') ) {
+ $self->error( 'Access Denied', __line__, __file__ );
+ }
+
$self;
}