From 73578640a38ca65d1af67f7976865240045b88ec Mon Sep 17 00:00:00 2001 From: Marco Hugentobler Date: Mon, 22 Oct 2012 11:28:16 +0200 Subject: [PATCH] Drop invalid characters from xml element names --- src/mapserver/qgis_map_serv.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mapserver/qgis_map_serv.cpp b/src/mapserver/qgis_map_serv.cpp index 6be6e19d819..4196491e210 100644 --- a/src/mapserver/qgis_map_serv.cpp +++ b/src/mapserver/qgis_map_serv.cpp @@ -164,6 +164,8 @@ int main( int argc, char * argv[] ) } #endif + QDomImplementation::setInvalidDataPolicy( QDomImplementation::DropInvalidChars ); + // Instantiate the plugin directory so that providers are loaded QgsProviderRegistry::instance( QgsApplication::pluginPath() ); QgsDebugMsg( "Prefix PATH: " + QgsApplication::prefixPath() );