[QGIS Commit] r10929 - trunk/qgis/python/plugins/mapserver_export

svn_qgis at osgeo.org svn_qgis at osgeo.org
Mon Jun 15 10:20:26 EDT 2009


Author: timlinux
Date: 2009-06-15 10:20:26 -0400 (Mon, 15 Jun 2009)
New Revision: 10929

Modified:
   trunk/qgis/python/plugins/mapserver_export/ms_export.py
Log:
Put map name in quotes to avoid issues with map names having spaces

Modified: trunk/qgis/python/plugins/mapserver_export/ms_export.py
===================================================================
--- trunk/qgis/python/plugins/mapserver_export/ms_export.py	2009-06-15 11:45:48 UTC (rev 10928)
+++ trunk/qgis/python/plugins/mapserver_export/ms_export.py	2009-06-15 14:20:26 UTC (rev 10929)
@@ -213,7 +213,7 @@
     # TODO allow user to configure this
     self.outFile.write("    # WMS server settings\n")
     self.outFile.write("    METADATA\n")
-    self.outFile.write("      'wms_title'           '" + self.mapName + "'\n")
+    self.outFile.write("      'wms_title'           '\"" + self.mapName + "\"'\n")
     self.outFile.write("      'wms_onlineresource'  'http://my.host.com/cgi-bin/mapserv?map=wms.map&'\n")
     self.outFile.write("      'wms_srs'             'EPSG:4326'\n")
     self.outFile.write("    END\n\n")



More information about the QGIS-commit mailing list