Subversion Repositories bacoAlunos

Compare Revisions

Ignore whitespace Rev 618 → Rev 619

/impl/src/java/pt/estgp/estgweb/web/DirWebProxy.java
86,7 → 86,6
String path = (String) request.getAttribute("path");
String startPath = (String) request.getAttribute("startPath");
String leafUrl = (String) request.getAttribute("leaf.url");
System.out.println("LEAF_URL:" + leafUrl);
String server = (String) request.getAttribute("server");
String useOutputStream = (String) request.getAttribute("useOutputStream");
String encoding = (String) request.getAttribute("encoding");
121,9 → 120,13
 
if (!server.startsWith("ftp://"))
{
if(path.equals(startPath))
if(path.equals(startPath) )
path += leafUrl;
String finalURL = server + URIUtil.encodePath(path, "ISO-8859-1");
String finalURL;
if(leafUrl.indexOf("?")>0)
finalURL = server + leafUrl;
else
finalURL = server + URIUtil.encodePath(path, "ISO-8859-1");
URL url = new URL(finalURL);
System.out.println("FINAL_URL:" + finalURL);