]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/planet/files/default/replication-bin/replicate-changesets
Spaces (0x20) should not be replaced, as they are not invalid.
[chef.git] / 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
 
 ##