added code to put in the META tag that defeats Microsoft IE Smart Tags

This commit is contained in:
Eric J. Bowersox
2001-06-20 04:08:34 +00:00
parent 69e62acbb9
commit a9847865d9
6 changed files with 28 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ public class RenderConfig
private String site_title;
private boolean want_comments;
private boolean allow_gzip;
private boolean no_smart_tags;
private String font_face;
private String image_url;
private String static_url;
@@ -104,10 +105,12 @@ public class RenderConfig
DOMElementHelper render_sect_h = new DOMElementHelper(render_sect);
want_comments = render_sect_h.hasChildElement("html-comments");
allow_gzip = render_sect_h.hasChildElement("gzip-output");
no_smart_tags = !(render_sect_h.hasChildElement("ms-copyright-violations"));
if (logger.isDebugEnabled())
{ // log the read values
logger.debug("Use HTML comments: " + String.valueOf(want_comments));
logger.debug("Use GZIP encoding: " + String.valueOf(allow_gzip));
logger.debug("Disable IE Smart Tags: " + String.valueOf(no_smart_tags));
} // end if
@@ -325,6 +328,12 @@ public class RenderConfig
} // end isGZIPAllowed
boolean noSmartTags()
{
return no_smart_tags;
} // end noSmartTags
String getFullImagePath(String name)
{
StringBuffer buf = new StringBuffer();

View File

@@ -135,6 +135,12 @@ public class RenderData
} // end canGZIPEncode
boolean noSmartTags()
{
return rconf.noSmartTags();
} // end noSmartTags
public String getSiteImageTag(int hspace, int vspace)
{
return rconf.getSiteImageTag(hspace,vspace);