From 38d7a28cd2cbbba7df3c1e572fd6b5956531c03d Mon Sep 17 00:00:00 2001 From: orbiter Date: Fri, 5 Mar 2010 12:24:15 +0000 Subject: [PATCH] fix in viewfile needed when ViewFile is called only with 'url' parameter git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6712 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/ViewFile.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htroot/ViewFile.java b/htroot/ViewFile.java index c3c1145af..fcf96d07d 100644 --- a/htroot/ViewFile.java +++ b/htroot/ViewFile.java @@ -107,7 +107,7 @@ public class ViewFile { boolean pre = false; // get the url hash from which the content should be loaded - final String urlHash = post.get("urlHash",""); + String urlHash = post.get("urlHash",""); if (urlHash.length() > 0) { // get the urlEntry that belongs to the url hash URIMetadataRow urlEntry = null; @@ -146,6 +146,7 @@ public class ViewFile { // define an url by post parameter url = new DigestURI(urlString, null); + urlHash = url.hash(); pre = post.get("pre", "false").equals("true"); } catch (final MalformedURLException e) {}