Commit 8f8a3724 authored by myk%mozilla.org's avatar myk%mozilla.org

Fix validation problem (unescaped ampersands) by making the program listing be CDATA.

parent e4503e1a
...@@ -295,7 +295,7 @@ ...@@ -295,7 +295,7 @@
</para> </para>
<para>After untarring the localizations (or creating your own) in the <para>After untarring the localizations (or creating your own) in the
<filename class="directory"><varname>BUGZILLA_ROOT</varname>/template</filename> directory, <filename class="directory">BUGZILLA_ROOT/template</filename> directory,
you must update the <option>languages</option> parameter to contain any you must update the <option>languages</option> parameter to contain any
localizations you'd like to permit. You may also wish to set the localizations you'd like to permit. You may also wish to set the
<option>defaultlanguage</option> parameter to something other than <option>defaultlanguage</option> parameter to something other than
...@@ -345,12 +345,12 @@ ...@@ -345,12 +345,12 @@
tool (e.g. <command>grep</command>) to search the standard templates tool (e.g. <command>grep</command>) to search the standard templates
for occurrences of <methodname>Hook.process</methodname> or browse for occurrences of <methodname>Hook.process</methodname> or browse
the directory tree in the directory tree in
<filename><varname>BUGZILLA_ROOT</varname>/template/en/extension/hook/</filename>, <filename>BUGZILLA_ROOT/template/en/extension/hook/</filename>,
which contains a directory for each hook in the following location: which contains a directory for each hook in the following location:
</para> </para>
<para> <para>
<filename><varname>BUGZILLA_ROOT</varname>/template/en/extension/hook/<varname>PATH_TO_STANDARD_TEMPLATE</varname>/<varname>STANDARD_TEMPLATE_NAME</varname>/<varname>HOOK_NAME</varname>/</filename> <filename>BUGZILLA_ROOT/template/en/extension/hook/PATH_TO_STANDARD_TEMPLATE/STANDARD_TEMPLATE_NAME/HOOK_NAME/</filename>
</para> </para>
<para> <para>
...@@ -375,7 +375,7 @@ ...@@ -375,7 +375,7 @@
The Bugzilla reviewers will promptly review each hook request, The Bugzilla reviewers will promptly review each hook request,
name the hook, add it to the template, check the new version name the hook, add it to the template, check the new version
of the template into CVS, and create the corresponding directory in of the template into CVS, and create the corresponding directory in
<filename><varname>BUGZILLA_ROOT</varname>/template/en/extension/hook/</filename>. <filename>BUGZILLA_ROOT/template/en/extension/hook/</filename>.
</para> </para>
<para> <para>
...@@ -415,7 +415,7 @@ ...@@ -415,7 +415,7 @@
<filename>useful-links.html.tmpl</filename>, which is located in <filename>useful-links.html.tmpl</filename>, which is located in
the <filename>global/</filename> subdirectory on the standard Bugzilla the <filename>global/</filename> subdirectory on the standard Bugzilla
template path template path
<filename><varname>BUGZILLA_ROOT</varname>/template/en/default/</filename>. <filename>BUGZILLA_ROOT/template/en/default/</filename>.
Looking in <filename>useful-links.html.tmpl</filename>, you find Looking in <filename>useful-links.html.tmpl</filename>, you find
the following hook at the end of the list of standard Bugzilla the following hook at the end of the list of standard Bugzilla
administration links: administration links:
...@@ -429,7 +429,7 @@ ...@@ -429,7 +429,7 @@
<para> <para>
The corresponding directory for this hook is The corresponding directory for this hook is
<filename><varname>BUGZILLA_ROOT</varname>/template/en/extension/hook/global/useful-links.html.tmpl/edit/</filename>. <filename>BUGZILLA_ROOT/template/en/extension/hook/global/useful-links.html.tmpl/edit/</filename>.
</para> </para>
<para> <para>
...@@ -454,7 +454,7 @@ ...@@ -454,7 +454,7 @@
<para> <para>
You may want to prefix your extension template names You may want to prefix your extension template names
with the name of your extension, e.g. with the name of your extension, e.g.
<filename><literal>projman</literal>-foo.html.tmpl</filename>, <filename>projman-foo.html.tmpl</filename>,
so they do not conflict with the names of templates installed by so they do not conflict with the names of templates installed by
other extensions. other extensions.
</para> </para>
...@@ -465,7 +465,7 @@ ...@@ -465,7 +465,7 @@
If your extension includes entirely new templates in addition to If your extension includes entirely new templates in addition to
extensions of standard templates, it should install those new extensions of standard templates, it should install those new
templates into an extension-specific subdirectory of the templates into an extension-specific subdirectory of the
<filename><varname>BUGZILLA_ROOT</varname>/template/en/extension/</filename> <filename>BUGZILLA_ROOT/template/en/extension/</filename>
directory. The <filename>extension/</filename> directory, like the directory. The <filename>extension/</filename> directory, like the
<filename>default/</filename> and <filename>custom/</filename> <filename>default/</filename> and <filename>custom/</filename>
directories, is part of the template search path, so putting templates directories, is part of the template search path, so putting templates
...@@ -494,9 +494,9 @@ ...@@ -494,9 +494,9 @@
<para> <para>
Installation customizers can also take advantage of hooks when adding Installation customizers can also take advantage of hooks when adding
code to a Bugzilla template. To do so, create directories in code to a Bugzilla template. To do so, create directories in
<filename><varname>BUGZILLA_ROOT</varname>/template/en/custom/hook/</filename> <filename>BUGZILLA_ROOT/template/en/custom/hook/</filename>
equivalent to the directories in equivalent to the directories in
<filename><varname>BUGZILLA_ROOT</varname>/template/en/extension/hook/</filename> <filename>BUGZILLA_ROOT/template/en/extension/hook/</filename>
for the hooks you want to use, then place your customization templates for the hooks you want to use, then place your customization templates
into those directories. into those directories.
</para> </para>
...@@ -584,7 +584,7 @@ ...@@ -584,7 +584,7 @@
}</programlisting> }</programlisting>
This says that only users in the group "quality_assurance" can change This says that only users in the group "quality_assurance" can change
the QA Contact field of a bug. Getting more weird: the QA Contact field of a bug. Getting more weird:
<programlisting> if (($field eq "priority") && <programlisting><![CDATA[ if (($field eq "priority") &&
(Bugzilla->user->email =~ /.*\@example\.com$/)) (Bugzilla->user->email =~ /.*\@example\.com$/))
{ {
if ($oldvalue eq "P1") { if ($oldvalue eq "P1") {
...@@ -593,7 +593,7 @@ ...@@ -593,7 +593,7 @@
else { else {
return 0; return 0;
} }
}</programlisting> }]]></programlisting>
This says that if the user is trying to change the priority field, This says that if the user is trying to change the priority field,
and their email address is @example.com, they can only do so if the and their email address is @example.com, they can only do so if the
old value of the field was "P1". Not very useful, but illustrative. old value of the field was "P1". Not very useful, but illustrative.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment