summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-03-19 18:53:52 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-03-19 18:53:52 +0000
commit030ef4038357cabe10ecd747c8d163624ef812e7 (patch)
tree2909a587f27c357bfd807567cf9eda310c4b88a6 /LedgerSMB
parent64febd669873e6a76293eb666941b4b47e8cd829 (diff)
Removing per-login script feature
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@948 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/Form.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index 9f37ad09..e873622d 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -79,11 +79,8 @@ sub new {
bless $self, $type;
- $self->{path} =~ s#\\#/#g;
- if (($self->{path}) && ($self->{path} !~ m#^bin/#)
- || ($self->{path} =~ m#(\w*/){2,}#)){
- $self->error("Access Denied");
- }
+ if ($form->{path} ne 'bin/lynx'){ $form->{path} = 'bin/mozilla';}
+
if (($self->{script} =~ m#(..|\\|/)#)){
$self->error("Access Denied");
}