From: <bra...@us...> - 2008-06-20 01:41:45
|
Revision: 2296 http://archive-access.svn.sourceforge.net/archive-access/?rev=2296&view=rev Author: bradtofel Date: 2008-06-19 18:41:50 -0700 (Thu, 19 Jun 2008) Log Message: ----------- IMPROVEMENT (ACC-25): now we allow "http:/" instead of just "http://" to begin URLs. Modified Paths: -------------- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/core/WaybackRequest.java Modified: trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/core/WaybackRequest.java =================================================================== --- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/core/WaybackRequest.java 2008-06-20 01:28:54 UTC (rev 2295) +++ trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/core/WaybackRequest.java 2008-06-20 01:41:50 UTC (rev 2296) @@ -348,7 +348,11 @@ */ public void setRequestUrl(String urlStr) throws URIException { if (!urlStr.startsWith("http://")) { - urlStr = "http://" + urlStr; + if(urlStr.startsWith("http:/")) { + urlStr = "http://" + urlStr.substring(6); + } else { + urlStr = "http://" + urlStr; + } } // If its not http, next line throws exception. TODO: Fix. UURI requestURI = UURIFactory.getInstance(urlStr); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |