diff --git a/htroot/interaction/Triple.java b/htroot/interaction/Triple.java index 94c584ca1..15238ea50 100644 --- a/htroot/interaction/Triple.java +++ b/htroot/interaction/Triple.java @@ -73,7 +73,7 @@ public class Triple { } - if (post.containsKey("comment")) { + if (post.containsKey("url")) { Interaction.Triple(url, s, p, o, from); diff --git a/source/de/anomic/http/server/HTTPDFileHandler.java b/source/de/anomic/http/server/HTTPDFileHandler.java index c9bd0b2f1..380c2bbaf 100644 --- a/source/de/anomic/http/server/HTTPDFileHandler.java +++ b/source/de/anomic/http/server/HTTPDFileHandler.java @@ -1475,10 +1475,12 @@ public final class HTTPDFileHandler { String directory = ""; if (proxyurl.getPath().lastIndexOf('/') > 0) directory = proxyurl.getPath().substring(0, proxyurl.getPath().lastIndexOf('/')); + + String location = ""; if (outgoingHeader.containsKey("Location")) { // rewrite location header - String location = outgoingHeader.get("Location"); + location = outgoingHeader.get("Location"); if (location.startsWith("http")) { location = "/proxy.html?url=" + location; } else { @@ -1488,7 +1490,7 @@ public final class HTTPDFileHandler { } final String mimeType = outgoingHeader.getContentType(); - if (mimeType.startsWith("text/html") || mimeType.startsWith("text")) { + if ((mimeType.startsWith("text/html") || mimeType.startsWith("text"))) { final StringWriter buffer = new StringWriter(); if (outgoingHeader.containsKey(HeaderFramework.TRANSFER_ENCODING)) {