diff --git a/source/de/anomic/http/httpHeader.java b/source/de/anomic/http/httpHeader.java index 3b04928db..e36a00311 100644 --- a/source/de/anomic/http/httpHeader.java +++ b/source/de/anomic/http/httpHeader.java @@ -209,7 +209,7 @@ public final class httpHeader extends TreeMap implements Map { if (s.charAt(2) == ',') s = s.substring(0, 2) + s.substring(3); // ommit comma after day of week if ((s.charAt(0) > '9') && (s.length() > 20) && (s.charAt(2) == ' ')) s = s.substring(3); if (s.length() > 20) s = s.substring(0, 20).trim(); // truncate remaining, since that must be wrong - if (s.indexOf("Mrz") > 0) s.replaceAll("Mrz", "March"); + if (s.indexOf("Mrz") > 0) s = s.replaceAll("Mrz", "March"); try { return EMLFormatter.parse(s); } catch (java.text.ParseException e) { diff --git a/source/de/anomic/net/ftpc.java b/source/de/anomic/net/ftpc.java index df3e180f2..ef5f19149 100644 --- a/source/de/anomic/net/ftpc.java +++ b/source/de/anomic/net/ftpc.java @@ -1872,7 +1872,7 @@ cd .. c.exec("open " + host, false); c.exec("user " + account + " " + password, false); if (remotePath != null) { - remotePath.replace('\\', '/'); + remotePath = remotePath.replace('\\', '/'); c.exec("cd " + remotePath, false); } c.exec("binary", false); diff --git a/source/de/anomic/plasma/plasmaHTCache.java b/source/de/anomic/plasma/plasmaHTCache.java index 98ba85b36..4d1b2fdd9 100644 --- a/source/de/anomic/plasma/plasmaHTCache.java +++ b/source/de/anomic/plasma/plasmaHTCache.java @@ -396,7 +396,7 @@ public final class plasmaHTCache { if (!(remotePath.startsWith("/"))) remotePath = "/" + remotePath; if (remotePath.endsWith("/")) remotePath = remotePath + "ndx"; if (remotePath.indexOf('#') > 0) remotePath.substring(0, remotePath.indexOf('#')); - remotePath.replace('?', '_'); remotePath.replace('&', '_'); // yes this is not reversible, but that is not needed + remotePath = remotePath.replace('?', '_'); remotePath = remotePath.replace('&', '_'); // yes this is not reversible, but that is not needed int port = url.getPort(); if (port < 0) port = 80; return new File(this.cachePath, url.getHost() + ((port == 80) ? "" : ("+" + port)) + remotePath);