diff options
author | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-07-13 15:25:51 +0000 |
---|---|---|
committer | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-07-13 15:25:51 +0000 |
commit | 47edd3e44422e3c6f14494681322b5af4c97689e (patch) | |
tree | 0138be8bcb7149edfccb9ffc2b11d88abb4608e8 | |
parent | cbb032386383cb28d35c57cc8e2da79f71e6fb17 (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-x | LedgerSMB/Form.pm | 7 |
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; } |