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
pull/1/head
orbiter 15 years ago
parent 599c3766c4
commit 38d7a28cd2

@ -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) {}

Loading…
Cancel
Save