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

Shawn Moore sartak at bestpractical.com
Thu Mar 3 01:18:30 EST 2011


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

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

- Log -----------------------------------------------------------------
commit b3fc9c44065c675c224a612fdfab808d034e9962
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Thu Mar 3 01:18:19 2011 -0500

    Complain when $SERVER_PORT != WebPort

diff --git a/lib/RT/Interface/Web.pm b/lib/RT/Interface/Web.pm
index 39bbdc1..559bf21 100644
--- a/lib/RT/Interface/Web.pm
+++ b/lib/RT/Interface/Web.pm
@@ -1013,6 +1013,9 @@ sub ValidateWebConfig {
     return if $_has_validated_web_config;
     $_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)");
+    }
 }
 
 package HTML::Mason::Commands;

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


More information about the Rt-commit mailing list