[Bps-public-commit] r16044 - RT-Extension-rt_cpan_org/html

ruz at bestpractical.com ruz at bestpractical.com
Tue Sep 23 22:28:30 EDT 2008


Author: ruz
Date: Tue Sep 23 22:28:29 2008
New Revision: 16044

Modified:
   RT-Extension-rt_cpan_org/html/autohandler

Log:
* fix redirect logic

Modified: RT-Extension-rt_cpan_org/html/autohandler
==============================================================================
--- RT-Extension-rt_cpan_org/html/autohandler	(original)
+++ RT-Extension-rt_cpan_org/html/autohandler	Tue Sep 23 22:28:29 2008
@@ -287,8 +287,9 @@
 else {
     # check if we are in HTTPS mode
     if ( not defined $ARGS{nossl} 
-        and (not defined $ENV{'HTTP_X_FORWARDED_HOST'} or ($ENV{'HTTPS'}||'') ne 'on' ))
-    {
+        and not defined $ENV{'HTTP_X_FORWARDED_HOST'}
+        and ($ENV{'HTTPS'}||'') ne 'on'
+    ) {
         $m->redirect('https://'.$ENV{SERVER_NAME}.$ENV{REQUEST_URI});
     }
     $m->comp( '/Elements/Login', %ARGS );



More information about the Bps-public-commit mailing list