Author: j16sdiz
Date: 2008-12-05 06:41:41 +0000 (Fri, 05 Dec 2008)
New Revision: 24058
Modified:
trunk/freenet/src/freenet/node/PeerNode.java
Log:
bug 2761: temp hack to fix bad arks. remove after 1189
Modified: trunk/freenet/src/freenet/node/PeerNode.java
===================================================================
--- trunk/freenet/src/freenet/node/PeerNode.java 2008-12-05 06:33:41 UTC
(rev 24057)
+++ trunk/freenet/src/freenet/node/PeerNode.java 2008-12-05 06:41:41 UTC
(rev 24058)
@@ -711,6 +711,13 @@
long arkNo = 0;
try {
String arkPubKey = fs.get("ark.pubURI");
+
+ // FIXME remove this after 1189
+ // temp hack to fix bad pubURI (see bug 2761)
+ while (arkPubKey.matches(".*-\\d+$")) {
+ arkPubKey = arkPubKey.replaceAll("-\\d+$", "");
+ }
+
arkNo = fs.getLong("ark.number", -1);
if(arkPubKey == null && arkNo <= -1) {
// ark.pubURI and ark.number are always
optional as a pair
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs