Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
57faf820
Commit
57faf820
authored
Jul 01, 2003
by
jake%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 201955 - The method for specifing a charset has changed now that we use…
Bug 201955 - The method for specifing a charset has changed now that we use CGI.pm for header output (bug 201816).
parent
1c383fd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
17 deletions
+14
-17
installation.xml
docs/xml/installation.xml
+14
-17
No files found.
docs/xml/installation.xml
View file @
57faf820
<!-- <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"> -->
<!-- <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"> -->
<!-- $Id: installation.xml,v 1.4
8 2003/06/28 17:13:45
jake%bugzilla.org Exp $ -->
<!-- $Id: installation.xml,v 1.4
9 2003/06/30 21:11:00
jake%bugzilla.org Exp $ -->
<chapter
id=
"installation"
>
<chapter
id=
"installation"
>
<title>
Installation
</title>
<title>
Installation
</title>
...
@@ -1036,24 +1036,21 @@ man 5 crontab
...
@@ -1036,24 +1036,21 @@ man 5 crontab
installation has a good backup before making changes, and I recommend
installation has a good backup before making changes, and I recommend
you understand what the script is doing before executing it.
</para>
you understand what the script is doing before executing it.
</para>
<para>
<para>
Telling Bugzilla to output a charset as part of the HTTP header is
<programlisting>
much easier in version 2.18 and higher
<![%bz-devel;[ (including any cvs
bash# perl -pi -e "s/Content-Type\: text\/html/Content-Type\: text\/html\; charset=ISO-8859-1/i" *.cgi *.pl
pull after 4-May-2003 and development release after 2.17.5)]]>
. Simply
</programlisting>
locatate the following line in
<filename>
Bugzilla/CGI.pm
</filename>
:
<programlisting>
# Make sure that we don't send any charset headers
$self->charset('');
</programlisting>
and change it to:
<programlisting>
# Send all data using the ISO-8859-1 charset
$self->charset('ISO-8859-1');
</programlisting>
</para>
</para>
<para>
All this one-liner command does is search for all instances of
<quote>
Content-type: text/html
</quote>
and replaces it with
<quote>
Content-Type: text/html; charset=ISO-8859-1
</quote>
. This specification prevents possible Javascript attacks on the
browser, and is suggested for all English-speaking sites. For
non-English-speaking Bugzilla sites, I suggest changing
<quote>
ISO-8859-1
</quote>
, above, to
<quote>
UTF-8
</quote>
.
</para>
<note>
<note>
<para>
Using
<
meta
>
tags to set the charset is not
<para>
Using
<
meta
>
tags to set the charset is not
recommended, as there's a bug in Netscape 4.x which causes pages
recommended, as there's a bug in Netscape 4.x which causes pages
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment