[mw-devel] MW3 r1233 - trunk/webclient

dez at sucs.org dez at sucs.org
Sat Nov 13 15:55:09 GMT 2010


Author: dez
Date: 2010-11-13 15:55:08 +0000 (Sat, 13 Nov 2010)
New Revision: 1233

Modified:
   trunk/webclient/index.php
Log:
Forces the use of HTTPS


Modified: trunk/webclient/index.php
===================================================================
--- trunk/webclient/index.php	2010-11-13 12:20:56 UTC (rev 1232)
+++ trunk/webclient/index.php	2010-11-13 15:55:08 UTC (rev 1233)
@@ -1,4 +1,6 @@
 <?
+# Force the user to use HTTPS
+if (empty($_SERVER['HTTPS'])) header("Location: https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']);
 
 define('SMARTY_DIR', '/usr/share/php/smarty/libs/');
 require("/usr/share/php/smarty/libs/Smarty.class.php");




More information about the mw-devel mailing list