diff options
author | myk%mozilla.org <> | 2004-01-28 10:44:41 +0100 |
---|---|---|
committer | myk%mozilla.org <> | 2004-01-28 10:44:41 +0100 |
commit | 9044f51b81000e6bf639fa07ff2730ab29fd670b (patch) | |
tree | e0bbb8196e897a9d9c0655c8e8452198e576663c /docs | |
parent | 9f970402777c85c9c602321d4838de6e0a04dc2b (diff) | |
download | bugzilla-9044f51b81000e6bf639fa07ff2730ab29fd670b.tar.gz bugzilla-9044f51b81000e6bf639fa07ff2730ab29fd670b.tar.xz |
Fix validation problem (unescaped ampersands) by making the program listing be CDATA.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/xml/customization.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/xml/customization.xml b/docs/xml/customization.xml index 67877f9ca..c85505c1f 100644 --- a/docs/xml/customization.xml +++ b/docs/xml/customization.xml @@ -584,7 +584,7 @@ }</programlisting> This says that only users in the group "quality_assurance" can change 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$/)) { if ($oldvalue eq "P1") { @@ -593,7 +593,7 @@ else { return 0; } - }</programlisting> + }]]></programlisting> 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 old value of the field was "P1". Not very useful, but illustrative. |