fix for link in Supporter and Suftipps page

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@8010 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 13 years ago
parent 94eab08794
commit f121f4bb45

@ -127,7 +127,7 @@ public class Supporter {
row = Supporter.get(urlhash);
if (row == null) continue;
url = row.getPrimaryKeyUTF8();
url = row.getPrimaryKeyUTF8().trim();
try {
if (Switchboard.urlBlacklist.isListed(Blacklist.BLACKLIST_SURFTIPS, new DigestURI(url, urlhash.getBytes()))) continue;
} catch(final MalformedURLException e) {continue;}

@ -134,7 +134,7 @@ public class Surftips {
row = surftips.get(urlhash);
if (row == null) continue;
url = row.getPrimaryKeyUTF8();
url = row.getPrimaryKeyUTF8().trim();
try{
if(Switchboard.urlBlacklist.isListed(Blacklist.BLACKLIST_SURFTIPS ,new DigestURI(url)))
continue;

@ -489,6 +489,13 @@ public final class Row {
return c;
}
/**
* get the utf-8 value of the primary key
* you will most likely want to call .trim() on that value if the key does not have a fixed length
* because the return value may have a fill-up with zero bytes at the end of the string
*
* @return
*/
public final String getPrimaryKeyUTF8() {
if (this.rowinstance[this.offset] == 0) return null;
if (Row.this.row.length == 1 && this.offset == 0 && this.rowinstance.length == Row.this.primaryKeyLength) {

Loading…
Cancel
Save