W3C home > Mailing lists > Public > www-validator-cvs@w3.org > May 2007

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

From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 28 May 2007 04:51:39 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1HsXCl-0004mG-Fw@lionel-hutz.w3.org>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:22 UTC