Skip to content

Commit

Permalink
*) fixed broken link problem in profile. see http://www.yacy-forum.de…
Browse files Browse the repository at this point in the history
…/viewtopic.php?t=964 for details

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@597 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
low012 committed Aug 29, 2005
1 parent a812fb8 commit cc26779
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion htroot/ViewProfile.java
Expand Up @@ -116,7 +116,17 @@ public static serverObjects respond(httpHeader header, serverObjects post, serve
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);
Expand Down

0 comments on commit cc26779

Please sign in to comment.