fix for blog and wiki

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3218 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 18 years ago
parent 0c81bd39d4
commit ce6493e265

@ -194,7 +194,7 @@ public class Blog {
}
prop.put("mode_subject", wikiCode.replaceHTML(post.get("subject","")));
prop.put("mode_date", dateString(new Date()));
prop.put("mode_page", wikiTransformer.transform(post.get("content", "")));
prop.putASIS("mode_page", wikiTransformer.transform(post.get("content", "")));
prop.put("mode_page-code", post.get("content", "").replaceAll("<","&lt;").replaceAll(">","&gt;"));
}
else prop.put("mode",3); //access denied (no rights)

@ -156,7 +156,7 @@ public class Wiki {
prop.put("mode_pagename", pagename);
prop.put("mode_author", author);
prop.put("mode_date", dateString(new Date()));
prop.put("mode_page", wikiTransformer.transform(post.get("content", "")));
prop.putASIS("mode_page", wikiTransformer.transform(post.get("content", "")));
prop.put("mode_page-code", post.get("content", "").replaceAll("<","&lt;").replaceAll(">","&gt;"));
}
//end contrib of [MN]
@ -193,7 +193,7 @@ public class Wiki {
prop.put("mode_pagename", pagename);
prop.put("mode_author", page.author());
prop.put("mode_date", dateString(page.date()));
prop.put("mode_page", wikiTransformer.transform(page.page()));
prop.putASIS("mode_page", wikiTransformer.transform(page.page()));
prop.put("controls", 0);
prop.put("controls_pagename", pagename);

Loading…
Cancel
Save