diff options
-rw-r--r--[-rwxr-xr-x] | LICENSE | 0 | ||||
-rwxr-xr-x | LedgerSMB.pm | 12 | ||||
-rw-r--r--[-rwxr-xr-x] | doc/COPYRIGHT | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | doc/README | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | doc/faq.html | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | favicon.ico | bin | 568 -> 568 bytes | |||
-rwxr-xr-x | login.pl | 23 |
7 files changed, 8 insertions, 27 deletions
diff --git a/LedgerSMB.pm b/LedgerSMB.pm index 37fbe009..ee849723 100755 --- a/LedgerSMB.pm +++ b/LedgerSMB.pm @@ -125,17 +125,17 @@ sub new { $self->{action} =~ s/\W/_/g; $self->{action} = lc $self->{action}; - if ($self->{path} =~ /lynx/i){ + + 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"; - $self->{path} =~ s#\\#/#g; - if (($self->{path}) && ($self->{path} !~ m#^bin/#) - || ($self->{path} =~ m#(\w*/){2,}#)){ - $self->error("Access Denied"); } + if (($self->{script} =~ m#(..|\\|/)#)){ $self->error("Access Denied"); } diff --git a/doc/COPYRIGHT b/doc/COPYRIGHT index 18e6fc81..18e6fc81 100755..100644 --- a/doc/COPYRIGHT +++ b/doc/COPYRIGHT diff --git a/doc/README b/doc/README index c3a1cb5d..c3a1cb5d 100755..100644 --- a/doc/README +++ b/doc/README diff --git a/doc/faq.html b/doc/faq.html index 1e3c3fb8..1e3c3fb8 100755..100644 --- a/doc/faq.html +++ b/doc/faq.html diff --git a/favicon.ico b/favicon.ico Binary files differindex 0e114430..0e114430 100755..100644 --- a/favicon.ico +++ b/favicon.ico @@ -86,28 +86,9 @@ $script = substr($0, $pos + 1); # exit; #} +$ARGV[0] = $_; +require "bin/$script"; -if ($form{path}) { - - if ($form{path} ne 'bin/lynx'){ $form{path} = 'bin/mozilla';} - - $ARGV[0] = "$_&script=$script"; - require "bin/$script"; - -} else { - - $form{terminal} = "lynx"; - - if ($ENV{HTTP_USER_AGENT} !~ /lynx/i) { - $form{terminal} = "mozilla"; - } - - $ARGV[0] = "path=bin/$form{terminal}&script=$script"; - map { $ARGV[0] .= "&${_}=$form{$_}" } keys %form; - - require "bin/$script"; - -} # end of main |