Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Commit

Permalink
Fix incorrect content-type in XSL stylesheets
Browse files Browse the repository at this point in the history
Should be text/html;charset=utf8, not just plain utf8.

Reported by Alexandr Ciornii
  • Loading branch information
mhagander committed May 28, 2012
1 parent d7c55be commit 5daacc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/en_US/default-xsl.rst
Expand Up @@ -23,7 +23,7 @@ give it the pgadmin look and feel.
<xsl:if test="header/title != ''">
<title><xsl:value-of select="header/title" /></title>
</xsl:if>
<meta http-equiv="Content-Type" content="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body { font-family: verdana, helvetica, sans-serif; margin: 0px; padding: 0; }
h1 { font-weight: bold; font-size: 150%; border-bottom-style: solid; border-bottom-width: 2px; margin-top: 0px; padding-bottom: 0.5ex; color: #EBA525; }
Expand Down
2 changes: 1 addition & 1 deletion pgadmin/frm/frmReport.cpp
Expand Up @@ -581,7 +581,7 @@ wxString frmReport::GetDefaultXsl(const wxString &css)
wxT(" <xsl:if test=\"header/title != ''\">\n")
wxT(" <title><xsl:value-of select=\"header/title\" /></title>\n")
wxT(" </xsl:if>\n")
wxT(" <meta http-equiv=\"Content-Type\" content=\"utf-8\" />\n");
wxT(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n");
data += css;
data += wxT(" </head>\n")
wxT("\n")
Expand Down

0 comments on commit 5daacc9

Please sign in to comment.