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

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

Modified Files:
	check.java 
Log Message:
url-encoding referer URIs

Index: check.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/servlet/check.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- check.java	24 Apr 2007 09:33:49 -0000	1.9
+++ check.java	28 May 2007 04:51:36 -0000	1.10
@@ -16,7 +16,7 @@
 import javax.servlet.http.HttpServlet;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
-
+import java.net.URLEncoder;
 
 /**
  * This class is a servlet to use the validator.
@@ -83,7 +83,8 @@
 	    } else {
 		sb.append("&uri=");
 	    }
-	    sb.append(uri);
+	    sb.append(java.net.URLEncoder.encode(uri));
+	    //sb.append(uri);
 	}
 	res.sendRedirect(sb.toString());
     }

Received on Monday, 28 May 2007 04:51:44 UTC