~ escape '=', not '.'
authorEric Prud'hommeaux <eric@w3.org>
Mon, 21 Feb 2011 14:11:37 -0500
changeset 356 fbbbb58a65cc
parent 355 3e2b6e638c12
child 359 22cc49dbf0e6
~ escape '=', not '.'
directmapping-webapp/src/main/scala/Servlet.scala
directmapping/src/main/scala/DirectMapping.scala
--- a/directmapping-webapp/src/main/scala/Servlet.scala	Mon Feb 21 14:00:06 2011 -0500
+++ b/directmapping-webapp/src/main/scala/Servlet.scala	Mon Feb 21 14:11:37 2011 -0500
@@ -274,7 +274,7 @@
             { List("1table0rows", "1table1row", "1table2columns1row", "1table3columns1row", "2duplicates0nulls", "varchar_varchar_1row", "1table1compositeprimarykey3columns1row", "1table1primarykey1column1row", "2tables1primarykey1foreingkey") map renderVar }
 	  </div>
 	  </div>
-	  <p>{ minEncodeElement(minEncode) }Minimally encode IRI components (just encode [%&lt;+&nbsp;/\.#&gt;])</p>
+	  <p>{ minEncodeElement(minEncode) }Minimally encode IRI components (just encode [%&lt;+&nbsp;/=#&gt;])</p>
 	  <p><input value="clear" type="button" onclick="document.getElementById('sql').value = '';" /></p>
 	  <p><input id="submit" value="submit SQL" type="submit" /></p>
         </form>
--- a/directmapping/src/main/scala/DirectMapping.scala	Mon Feb 21 14:00:06 2011 -0500
+++ b/directmapping/src/main/scala/DirectMapping.scala	Mon Feb 21 14:11:37 2011 -0500
@@ -232,9 +232,8 @@
 	 .replaceAll("\\+", "%2B")
 	 .replaceAll(" ", "+")
 	 .replaceAll("/", "%2F")
-	 .replaceAll("\\.", "%2C")
+	 .replaceAll("=", "%3D")
 	 .replaceAll("#", "%23")
-	 // .replaceAll("=", "%3D")
 	 .replaceAll(">", "%3E")
       } else {
 	val r = URLEncoder.encode(s, "UTF-8")