diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-03-24 17:36:04 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-03-24 17:36:04 +0000 |
commit | aa5f616d44a84ffb6c0c8d861434663f35d66faf (patch) | |
tree | 6a48abf424e91ec64ec33ca114cd17bee7fdd48a /LedgerSMB/Form.pm | |
parent | b08cb0ba7c51c1dc9019881b26b25469041fea10 (diff) |
Removing executable bit from .pm files in svn
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@999 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB/Form.pm')
-rw-r--r--[-rwxr-xr-x] | LedgerSMB/Form.pm | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index ff436451..e75b3fd4 100755..100644 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -78,11 +78,16 @@ 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 ($self->{path} eq "bin/lynx"){ + $self->{menubar} = 1; + #menubar will be deprecated, replaced with below + $self->{lynx} = 1; + $self->{path} = "bin/lynx"; + } else { + $self->{path} = "bin/mozilla"; + } + if (($self->{script} =~ m#(..|\\|/)#)){ $self->error("Access Denied"); } |