Skip to content

Commit

Permalink
Issue #154: enhance a code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Jul 7, 2020
1 parent 988dfed commit 5d5b462
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/psgi-bin/otobo.psgi
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,10 @@ my $App = builder {
# %ENV has to be used here as the PSGI is not passed as an arg to this anonymous sub.
# $ENV{SCRIPT_NAME} contains the matching mountpoint. Can be e.g. '/otobo' or '/otobo/index.pl'
# $ENV{PATH_INFO} contains the path after the $ENV{SCRIPT_NAME}. Can be e.g. '/index.pl' or ''
# The extracted ScriptFileName should be something like index.pl, customer.pl, or rpc.pl
# The extracted ScriptFileName should be something like:
# nph-genericinterface.pl, index.pl, customer.pl, or rpc.pl
# Note the only the last part of the mount is considered. This means that e.g. duplicated '/'
# are gracefully ignored.
my ($ScriptFileName) = ( ( $ENV{SCRIPT_NAME} // '' ) . ( $ENV{PATH_INFO} // '' ) ) =~ m{/([A-Za-z\-_]+\.pl)};

# Fallback to agent login if we could not determine handle...
Expand Down

0 comments on commit 5d5b462

Please sign in to comment.