[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.7-139-gd7f9eef

sartak at bestpractical.com sartak at bestpractical.com
Thu Feb 4 16:43:40 EST 2010


The branch, 3.8-trunk has been updated
       via  d7f9eefe35a999ae9ec84696df1e3b7c73cb979a (commit)
      from  37e90168d8cf8276e6fdf09c2e77b379cfa0d1cb (commit)

Summary of changes:
 share/html/Elements/Login |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit d7f9eefe35a999ae9ec84696df1e3b7c73cb979a
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Thu Feb 4 16:41:53 2010 -0500

    Make sure we're logging in to the same domain

diff --git a/share/html/Elements/Login b/share/html/Elements/Login
index 38fa82e..f449e62 100755
--- a/share/html/Elements/Login
+++ b/share/html/Elements/Login
@@ -72,6 +72,12 @@ my $uri = URI->new($form_action);
 unless (!defined($uri->scheme) || $uri->scheme eq 'http' || $uri->scheme eq 'https') {
     $form_action = RT->Config->Get('WebPath');
 }
+
+# Make sure we're logging in to the same domain
+my $uri_base_url = URI->new(RT->Config->Get('WebBaseURL'));
+unless ($uri->authority eq $uri_base_url->authority) {
+    $form_action = RT->Config->Get('WebPath');
+}
 </%INIT>
 
 % $m->callback( %ARGS, CallbackName => 'Header' );

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


More information about the Rt-commit mailing list