[fusion-commits] r2267 - trunk/layers/MapServer/php

svn_fusion at osgeo.org svn_fusion at osgeo.org
Mon Nov 1 17:48:26 EDT 2010


Author: pagameba
Date: 2010-11-01 14:48:26 -0700 (Mon, 01 Nov 2010)
New Revision: 2267

Modified:
   trunk/layers/MapServer/php/LoadMap.php
Log:
add ability to obscure map file name via config.json

Modified: trunk/layers/MapServer/php/LoadMap.php
===================================================================
--- trunk/layers/MapServer/php/LoadMap.php	2010-11-01 21:43:03 UTC (rev 2266)
+++ trunk/layers/MapServer/php/LoadMap.php	2010-11-01 21:48:26 UTC (rev 2267)
@@ -157,6 +157,11 @@
     $mapId = getSessionSavePath().($oMap->name).".map";
 }
 
+if ($configObj->mapserver->obscureMapFile) {
+  error_log('obscuring map file');
+  $mapId = $oMap->name;
+}
+
 $mapObj = NULL;
 if ($oMap) {
     $mapName = $oMap->name;



More information about the fusion-commits mailing list