Revision: 5262
http://sourceforge.net/p/jump-pilot/code/5262
Author: michaudm
Date: 2016-12-16 08:03:50 +0000 (Fri, 16 Dec 2016)
Log Message:
-----------
#447 fix illegal character writing in jml
Modified Paths:
--------------
core/trunk/ChangeLog
core/trunk/src/com/vividsolutions/jump/io/GMLWriter.java
Modified: core/trunk/ChangeLog
===================================================================
--- core/trunk/ChangeLog 2016-12-16 07:43:01 UTC (rev 5261)
+++ core/trunk/ChangeLog 2016-12-16 08:03:50 UTC (rev 5262)
@@ -3,6 +3,9 @@
# 2. make sure that lines break at 80 chars for constricted display situations
#<-------------------------------- 80 chars
---------------------------------->#
+2016-12-16 mmichaud <[email protected]>
+ * #447 fix illegal character writing in jml
+
2016-14-10 Giuseppe Aruta <[email protected]>
* Updated Italian Language file
* RotateSelectedItemTool shows rotation center as point shape
Modified: core/trunk/src/com/vividsolutions/jump/io/GMLWriter.java
===================================================================
--- core/trunk/src/com/vividsolutions/jump/io/GMLWriter.java 2016-12-16
07:43:01 UTC (rev 5261)
+++ core/trunk/src/com/vividsolutions/jump/io/GMLWriter.java 2016-12-16
08:03:50 UTC (rev 5262)
@@ -240,6 +240,10 @@
if (c == '"') {
sb.replace(t, t + 1, """);
}
+
+ if ((int)c < 20 && c != '\t' && c != '\n' && c != 'r') {
+ sb.replace(t, t + 1, "");
+ }
}
return sb.toString();
@@ -257,7 +261,7 @@
* @param f feature to take geometry or column value from
* @param token to evaluate - "column","geometry" or "geometrytype"
*/
- // [mmichaud 2012-04-27] no mor eused, replaced by
+ // [mmichaud 2012-04-27] no more used, replaced by
// evaluateToken(Feature f, String token, Writer writer)
private String evaluateToken(Feature f, String token)
throws Exception {
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel