summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pazdziora <jpazdziora@redhat.com>2014-01-08 03:16:43 -0500
committerJan Pazdziora <jpazdziora@redhat.com>2014-01-08 03:16:43 -0500
commit0a30a04784947c37dd9239fdc49b477e40be31d8 (patch)
tree030449d90246a272ad5e42a53963e78a62c55538
parentdcee5483997bdc1897131a0057030228b0890f8c (diff)
downloadCGI-sessions-login2.zip
CGI-sessions-login2.tar.gz
CGI-sessions-login2.tar.xz
Allow /application/login2 to also be treated as login page.login2
-rwxr-xr-xapp.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.cgi b/app.cgi
index 2cd143a..d97ed8e 100755
--- a/app.cgi
+++ b/app.cgi
@@ -96,7 +96,7 @@ EOS
}
if (defined $ENV{PATH_INFO}) {
- if ($ENV{PATH_INFO} eq $LOGIN) {
+ if (substr($ENV{PATH_INFO}, 0, length($LOGIN)) eq $LOGIN) {
login();
push @nav, qq!<a href="$ENV{SCRIPT_NAME}">Back to application</a>!;
} elsif ($ENV{PATH_INFO} eq $LOGOUT) {