*) fixed broken link problem in profile. see http://www.yacy-forum.de/viewtopic.php?t=964 for details

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@597 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
low012 20 years ago
parent a812fb86cc
commit cc26779aeb

@ -116,7 +116,17 @@ public class ViewProfile {
while (i.hasNext()) {
entry = (Map.Entry) i.next();
String key=(String)entry.getKey();
String value=wikiTransformer.transform( ((String)entry.getValue()).replaceAll("\r","").replaceAll("\\\\n","\n") );
String value=new String();
//only comments get "wikified"
//this prevents broken links
if(key.equals("comment")){
value=wikiTransformer.transform( ((String)entry.getValue()).replaceAll("\r","").replaceAll("\\\\n","\n") );
}
else{
value=((String)entry.getValue()).replaceAll("\r","").replaceAll("\\\\n","\n");
}
//all known Keys which should be set as they are
if(knownKeys.contains(key)){
prop.put("success_"+key, 1);

Loading…
Cancel
Save