2002/css-validator/org/w3c/css/servlet check.java,1.10,1.11

Update of /sources/public/2002/css-validator/org/w3c/css/servlet
In directory hutz:/tmp/cvs-serv29286/org/w3c/css/servlet

Modified Files:
	check.java 
Log Message:
working URI-escaping of refere field
VS: ----------------------------------------------------------------------


Index: check.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/servlet/check.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- check.java	28 May 2007 04:51:36 -0000	1.10
+++ check.java	28 May 2007 05:36:04 -0000	1.11
@@ -42,6 +42,8 @@
     {
 
 	String uri = req.getHeader("Referer");
+	String encodeEnc = "UTF-8";
+	uri = java.net.URLEncoder.encode(uri, encodeEnc);
 
 	if (uri == null) {
 	    res.setContentType("text/plain");
@@ -83,8 +85,7 @@
 	    } else {
 		sb.append("&uri=");
 	    }
-	    sb.append(java.net.URLEncoder.encode(uri));
-	    //sb.append(uri);
+	    sb.append(uri);
 	}
 	res.sendRedirect(sb.toString());
     }

Received on Monday, 28 May 2007 05:36:10 UTC