index
:
monkeysphere
autoquote
dualquote
master
rootsquash
shell
Unnamed repository; edit this file 'description' to name the repository.
Jonas Smedegaard
summary
refs
log
tree
commit
diff
log msg
author
committer
range
#!/usr/bin/perl -w
use
warnings
;
use
strict
;
LedgerSMB
::
Handler-
>
cgi_handle
();
package
LedgerSMB
::
Handler
;
use
LedgerSMB
::
Log
;
use
warnings
;
use
strict
;
use
CGI
::
Carp
qw(fatalsToBrowser)
;
sub
cgi_handle
{
my
$self
=
shift
;
my
$script
=
$ENV
{
PATH_INFO
};
$script
=~
s/^\//
/;
# TODO: we can parse out other information, such as
# Company Identifier, and what not here.
#return $self->debug();
if
(
$script
=~
/\.pl$/
) {
# perl scripts should be directly executed.
warn
"[LedgerSMB::Handler] running
$script
"