remove left over '>' in description and replace ' ' by '+' in rss search where URL-encoded parameters are required.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4147 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
fuchsi 17 years ago
parent 4ce25b3661
commit ebfd1e0b42

@ -412,7 +412,7 @@ public class yacysearch {
// for RSS: don't HTML encode some elements // for RSS: don't HTML encode some elements
String q = htmlTools.encodeUnicode2xml(post.get("search", "")); String q = htmlTools.encodeUnicode2xml(post.get("search", ""));
prop.putASIS("rss_query", q); prop.putASIS("rss_query", q);
prop.putASIS("rss_queryenc", yacyURL.escape(q)); prop.putASIS("rss_queryenc", yacyURL.escape(q.replace(' ', '+')));
// return rewrite properties // return rewrite properties
return prop; return prop;

@ -43,7 +43,7 @@
<item> <item>
<title>#[title]#</title> <title>#[title]#</title>
<link>#[link]#</link> <link>#[link]#</link>
<description>#[description]#></description> <description>#[description]#</description>
<pubDate>#[date]#</pubDate> <pubDate>#[date]#</pubDate>
<guid isPermaLink="false">#[urlhash]#</guid> <guid isPermaLink="false">#[urlhash]#</guid>
</item> </item>

Loading…
Cancel
Save