else if(post.containsKey("preview")) {
if(hasRights) {
wikiCode wikiTransformer=new wikiCode(switchboard);
prop.put("mode", 2);//preview
prop.put("mode_pageid", pagename);
<BUG>prop.put("mode_author", author);

prop.put("mode_subject", post.get("subject",""));
</BUG>
prop.put("mode_date", dateString(new Date()));

else if(post.containsKey("preview")) {
if(hasRights) {
wikiCode wikiTransformer=new wikiCode(switchboard);
prop.put("mode", 2);//preview
prop.put("mode_pageid", pagename);
prop.put("mode_author", wikiCode.replaceHTML(author));
prop.put("mode_subject", wikiCode.replaceHTML(post.get("subject","")));
prop.put("mode_date", dateString(new Date()));
