Skip to content

Commit

Permalink
bugfix for wiki key-length
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@468 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Aug 1, 2005
1 parent 5157159 commit cc38c5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/de/anomic/data/wikiBoard.java
Expand Up @@ -58,7 +58,7 @@

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;

Expand Down Expand Up @@ -278,6 +278,7 @@ public entry read(String key) {
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());
Expand Down

0 comments on commit cc38c5e

Please sign in to comment.