diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-03-24 17:42:42 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-03-24 17:42:42 +0000 |
commit | 0af29a7145e05bdc2d89a689ce77cddd97e95ff1 (patch) | |
tree | 80bd7f41042e386d5fe87a1696694dcab0859d54 | |
parent | 4d55c425d6b332832c5e7548e4883ab49716ed38 (diff) |
Removing executable bit from documentation
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1001 4979c152-3d1c-0410-bac9-87ea11338e46
-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 |