removed the automatic HTML escaping from content headers and moved it out
to the JSPs and other classes as needed...this may speed up things a tiny bit, but will definitely help in displaying topic names with HTML and escaped characters correctly
This commit is contained in:
@@ -711,9 +711,9 @@ public class RootConfig implements LinkTypes, ColorSelectors
|
||||
public final String getContentHeader(String primary, String secondary)
|
||||
{
|
||||
StringBuffer buf = new StringBuffer(content_hdr[0]);
|
||||
buf.append(StringUtil.encodeHTML(primary)).append(content_hdr[1]);
|
||||
buf.append(primary).append(content_hdr[1]);
|
||||
if (secondary!=null)
|
||||
buf.append(content_hdr[2]).append(StringUtil.encodeHTML(secondary)).append(content_hdr[3]);
|
||||
buf.append(content_hdr[2]).append(secondary).append(content_hdr[3]);
|
||||
buf.append(content_hdr[4]);
|
||||
return buf.toString();
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
*
|
||||
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||
* for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||
* Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
* Copyright (C) 2001-02 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
@@ -106,7 +106,7 @@ public class UtilHeaderTag extends VeniceBodyTagSupport
|
||||
|
||||
public void setTitle(String s)
|
||||
{
|
||||
title = s;
|
||||
title = s.trim();
|
||||
|
||||
} // end setTitle
|
||||
|
||||
@@ -118,7 +118,7 @@ public class UtilHeaderTag extends VeniceBodyTagSupport
|
||||
|
||||
public void setSubtitle(String s)
|
||||
{
|
||||
subtitle = s;
|
||||
subtitle = s.trim();
|
||||
|
||||
} // end setSubtitle
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ public class CommunityMenu implements MenuComponent, ColorSelectors, LinkTypes
|
||||
|
||||
} // end catch
|
||||
|
||||
title = ctxt.getName();
|
||||
title = StringUtil.encodeHTML(ctxt.getName());
|
||||
items_list = items;
|
||||
cid = ctxt.getCommunityID();
|
||||
show_unjoin = ctxt.canUnjoin();
|
||||
|
||||
Reference in New Issue
Block a user