diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-03-17 21:03:39 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-03-17 21:03:39 +0000 |
commit | 4a04e78e1d10f40053407755a2ef3ce25193d87d (patch) | |
tree | 4e9e3925f156e6c0a66a8336e40293a3f9394256 /LedgerSMB | |
parent | f94513244b6bdc4a5cd0b867495023db9aacb659 (diff) |
nextsub is now treated the same way as sub, and special handling for ->{action}'s starting with ( |.) is removed
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@930 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-x | LedgerSMB/Form.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index 745708e3..59f23b6c 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -65,6 +65,8 @@ sub new { if (substr($self->{action}, 0, 1) !~ /( |\.)/) { $self->{action} = lc $self->{action}; $self->{action} =~ s/( |-|,|\#|\/|\.$)/_/g; + $self->{nextsub} = lc $self->{nextsub}; + $self->{nextsub} =~ s/( |-|,|\#|\/|\.$)/_/g; } $self->{menubar} = 1 if $self->{path} =~ /lynx/i; @@ -76,7 +78,7 @@ sub new { bless $self, $type; - if ($self->{action} =~ /:/){ + if (($self->{action} =~ /:/) || ($self->{nextsub} =~ /:/)){ $self->error("Access Denied"); } $self; |