Spaces (0x20) should not be replaced, as they are not invalid.
authorMatt Amos <zerebubuth@gmail.com>
Wed, 20 Jan 2016 17:36:47 +0000 (17:36 +0000)
committerMatt Amos <zerebubuth@gmail.com>
Wed, 20 Jan 2016 17:36:47 +0000 (17:36 +0000)
cookbooks/planet/files/default/replication-bin/replicate-changesets

index 8fd78a1bc33e1dfee2a81a535d26b24d30290d7e..3c1aef151c93816539e5fc246dcbae0b928a40b6 100644 (file)
@@ -18,7 +18,7 @@ GEO_SCALE = 10000000
 ##
 # replace characters which cannot be represented in XML 1.0.
 def xml_sanitize(str)
-  str.gsub(/[\x00-\x08\x0b\x0c\x0e-\x20]/, "?")
+  str.gsub(/[\x00-\x08\x0b\x0c\x0e-\x1f]/, "?")
 end
 
 ##