[Rt-commit] rt branch, 4.0/sanity-check-url-config, updated. rt-3.9.7-1141-gaccd613

Shawn Moore sartak at bestpractical.com
Thu Mar 3 01:36:07 EST 2011


The branch, 4.0/sanity-check-url-config has been updated
       via  accd61356beaba2d8783a5d53efd5566b5b88f74 (commit)
      from  b3fc9c44065c675c224a612fdfab808d034e9962 (commit)

Summary of changes:
 lib/RT/Interface/Web.pm |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit accd61356beaba2d8783a5d53efd5566b5b88f74
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Thu Mar 3 01:35:58 2011 -0500

    Complain about WebDomain too

diff --git a/lib/RT/Interface/Web.pm b/lib/RT/Interface/Web.pm
index 559bf21..fe484f5 100644
--- a/lib/RT/Interface/Web.pm
+++ b/lib/RT/Interface/Web.pm
@@ -1014,7 +1014,11 @@ sub ValidateWebConfig {
     $_has_validated_web_config = 1;
 
     if ($ENV{SERVER_PORT} != RT->Config->Get('WebPort')) {
-        $RT::Logger->warn("The \$SERVER_PORT environment variable ($ENV{SERVER_PORT}) from a web request does NOT match the configured WebPort ($RT::WebPort)");
+        $RT::Logger->warn("The SERVER_PORT environment variable ($ENV{SERVER_PORT}) from a web request does NOT match the configured WebPort ($RT::WebPort)");
+    }
+
+    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)");
     }
 }
 

-----------------------------------------------------------------------


More information about the Rt-commit mailing list