From 92352426d189a6ad27c1d0b118b7b5c66882be95 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Sat, 17 Mar 2007 21:05:28 +0000 Subject: 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/trunk@931 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Form.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'LedgerSMB') diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index 49bc3d7d..05044b99 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; -- cgit v1.2.3