W3C home > Mailing lists > Public > www-validator-cvs@w3.org > October 2009

2006/unicorn/src/org/w3c/unicorn/input URIInputParameter.java,1.11,1.12

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 06 Oct 2009 08:16:04 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Mv5DI-0005bF-FY@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/input
In directory hutz:/tmp/cvs-serv21432/src/org/w3c/unicorn/input

Modified Files:
	URIInputParameter.java 
Log Message:
working on language strings

Index: URIInputParameter.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/input/URIInputParameter.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- URIInputParameter.java	5 Oct 2009 14:25:41 -0000	1.11
+++ URIInputParameter.java	6 Oct 2009 08:16:02 -0000	1.12
@@ -44,13 +44,12 @@
 				if (!uri.contains("://")) 
 					uri = "http://" + uri;
 				if (!urlPattern.matcher(uri).matches())
-					throw new UnicornException(Message.ERROR, "$message_invalid_url_syntax " + uri, null);
+					throw new UnicornException(Message.ERROR, "$message_invalid_url_syntax ", uri);
 			}
 			docUrl = new URL(uri);
 			if (!docUrl.getProtocol().equals("http") && !docUrl.getProtocol().equals("https"))
 				throw new UnicornException(Message.ERROR, "$message_unsupported_protocol " + docUrl.getProtocol(), null);
 			HttpURLConnection con = (HttpURLConnection) docUrl.openConnection();
-			System.out.println(con.getClass());
 			con.setConnectTimeout(connectTimeOut);
 			con.connect();
 			int responseCode = con.getResponseCode();
Received on Tuesday, 6 October 2009 08:16:06 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:39 UTC