W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2005

2002/css-validator/org/w3c/css/util HTTPURL.java,1.11,1.12

From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 18 Mar 2005 08:19:25 +0000
To: www-validator-cvs@w3.org
Message-ID: <E1DCChZ-0001yr-8G@lionel-hutz.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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:54:48 GMT