[Rt-commit] rt branch, 4.0/sanity-check-url-config, updated. rt-3.9.7-1142-g6442fed
Shawn Moore
sartak at bestpractical.com
Thu Mar 3 01:41:13 EST 2011
The branch, 4.0/sanity-check-url-config has been updated
via 6442feddcc84987e8b35e00f78b53996ef7590da (commit)
from accd61356beaba2d8783a5d53efd5566b5b88f74 (commit)
Summary of changes:
lib/RT/Interface/Web.pm | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 6442feddcc84987e8b35e00f78b53996ef7590da
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Thu Mar 3 01:40:59 2011 -0500
Complain about a bad WebPath
diff --git a/lib/RT/Interface/Web.pm b/lib/RT/Interface/Web.pm
index fe484f5..7a1b5cc 100644
--- a/lib/RT/Interface/Web.pm
+++ b/lib/RT/Interface/Web.pm
@@ -1020,6 +1020,10 @@ sub ValidateWebConfig {
if ($ENV{SERVER_NAME} ne RT->Config->Get('WebDomain')) {
$RT::Logger->warn("The SERVER_NAME environment variable ($ENV{SERVER_PORT}) from a web request does NOT match the configured WebDomain ($RT::WebDomain)");
}
+
+ if ($ENV{PATH_INFO} !~ /^\Q$RT::WebPath\E/) {
+ $RT::Logger->warn("A requested path ($ENV{PATH_INFO}) does NOT fall within the configured WebPath ($RT::WebPath)");
+ }
}
package HTML::Mason::Commands;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list