changeset 356:fbbbb58a65cc

~ escape '=', not '.'
author Eric Prud'hommeaux <eric@w3.org>
date Mon, 21 Feb 2011 14:11:37 -0500
parents 3e2b6e638c12
children 22cc49dbf0e6
files directmapping-webapp/src/main/scala/Servlet.scala directmapping/src/main/scala/DirectMapping.scala
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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")
Set up and maintained by W3C Systems Team, please report bugs to sysreq@w3.org.

W3C would like to thank Microsoft who donated the server that allows us to run this service.