Skip to content
Permalink
Browse files

Update [BUGFIX] 13118 QGIS Server - WFS - GeoJSON and escaping line b…

…reaks

Enhance replace, thanks to @nyalldawson
Enhance format, thanks to @jef-n

fixes #13118
  • Loading branch information
rldhont committed Nov 12, 2015
1 parent df6c710 commit 81acd07edc6cf7e7be1d67eb37098b74e0b40350
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/server/qgswfsserver.cpp
@@ -1752,9 +1752,9 @@ QString QgsWFSServer::createFeatureGeoJSON( QgsFeature* feat, int prec, QgsCoord
{
fStr += "\"";
fStr += val.toString()
.replace( QString( "\"" ), QString( "\\\"" ) )
.replace( QString( "\r" ), QString( "\\r" ) )
.replace( QString( "\n" ), QString( "\\n" ) );
.replace( '"', "\\\"" )
.replace( '\r', "\\r" )
.replace( '\n', "\\n" );
fStr += "\"";
}
fStr += "\n";

0 comments on commit 81acd07

Please sign in to comment.
You can’t perform that action at this time.