- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 18 Mar 2005 08:19:25 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/util
In directory hutz:/tmp/cvs-serv7580
Modified Files:
HTTPURL.java
Log Message:
removing port restriction considered useless/harmful
Index: HTTPURL.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/util/HTTPURL.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- HTTPURL.java 9 Jan 2004 15:57:46 -0000 1.11
+++ HTTPURL.java 18 Mar 2005 08:19:23 -0000 1.12
@@ -152,15 +152,6 @@
if (Util.servlet) {
int port = url.getPort();
String protocol = url.getProtocol();
-
- if (((port < 1024) && (port != 80) && (port > 0))
- || (!"http".equalsIgnoreCase(protocol))) {
- System.err.println( "[WARNING] : someone is trying to "
- + "get the file: "
- + url );
- throw new FileNotFoundException("import " + url +
- ": Operation not permitted");
- }
}
URLConnection urlC = url.openConnection();
Received on Friday, 18 March 2005 08:19:25 UTC