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 ff67a05 commit 5e1d420cf2ed7eec9be1924dcc79d6c1a5b5837a
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 5e1d420

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