Skip to content

Commit

Permalink
* return valid xml in xml-bookmarks
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4619 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
f1ori committed Mar 30, 2008
1 parent c4c0d54 commit 2aed6bb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions htroot/xml/bookmarks/posts/all.java
Expand Up @@ -78,13 +78,13 @@ public static serverObjects respond(httpHeader header, serverObjects post, serve
Date date;
while(it.hasNext()){
bookmark=switchboard.bookmarksDB.getBookmark((String) it.next());
prop.put("posts_"+count+"_url", bookmark.getUrl());
prop.put("posts_"+count+"_title", bookmark.getTitle());
prop.put("posts_"+count+"_description", bookmark.getDescription());
prop.put("posts_"+count+"_md5", serverCodings.encodeMD5Hex(bookmark.getUrl()));
prop.putHTML("posts_"+count+"_url", bookmark.getUrl(), true);
prop.putHTML("posts_"+count+"_title", bookmark.getTitle(), true);
prop.putHTML("posts_"+count+"_description", bookmark.getDescription(), true);
prop.putHTML("posts_"+count+"_md5", serverCodings.encodeMD5Hex(bookmark.getUrl()), true);
date=new Date(bookmark.getTimeStamp());
prop.put("posts_"+count+"_time", serverDate.formatISO8601(date));
prop.put("posts_"+count+"_tags", bookmark.getTagsString().replaceAll(","," "));
prop.putHTML("posts_"+count+"_time", serverDate.formatISO8601(date), true);
prop.putHTML("posts_"+count+"_tags", bookmark.getTagsString().replaceAll(","," "), true);

// additional XML tags
prop.put("posts_"+count+"_isExtended",extendedXML ? "1" : "0");
Expand Down

0 comments on commit 2aed6bb

Please sign in to comment.