bugfix for wiki key-length

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@468 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 20 years ago
parent 5157159281
commit cc38c5e77b

@ -58,7 +58,7 @@ import de.anomic.server.serverCodings;
public class wikiBoard {
private static final int keyLength = 64;
public static final int keyLength = 64;
private static final String dateFormat = "yyyyMMddHHmmss";
private static final int recordSize = 512;
@ -278,6 +278,7 @@ public class wikiBoard {
private entry read(String key, kelondroMap base) {
try {
key = normalize(key);
if (key.length() > keyLength) key = key.substring(0, keyLength);
Map record = base.get(key);
if (record == null)
return newEntry(key, "anonymous", "127.0.0.1", "New Page", "".getBytes());

Loading…
Cancel
Save