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 32626bd commit c3572ebc597b6481560c014b2763c1d8dfb5b56f
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/server/qgswfsserver.cpp
@@ -1724,9 +1724,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 c3572eb

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