From cc26779aebc42cabe7165f72380e6f5333c69bd7 Mon Sep 17 00:00:00 2001 From: low012 Date: Mon, 29 Aug 2005 21:09:41 +0000 Subject: [PATCH] *) 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 --- htroot/ViewProfile.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/htroot/ViewProfile.java b/htroot/ViewProfile.java index af0685ca6..f0166c9f2 100644 --- a/htroot/ViewProfile.java +++ b/htroot/ViewProfile.java @@ -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);