]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix validation problem (unescaped ampersands) by making the program listing be CDATA.
authormyk%mozilla.org <>
Wed, 28 Jan 2004 09:44:41 +0000 (09:44 +0000)
committermyk%mozilla.org <>
Wed, 28 Jan 2004 09:44:41 +0000 (09:44 +0000)
docs/xml/customization.xml

index 67877f9ca84e10cfae672b4f848c7bd09c31897d..c85505c1f04fdfd30a1e9ca07750eb951e0d5b69 100644 (file)
     }</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") {
         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.