Fix validation problem (unescaped ampersands) by making the program listing be CDATA.
git-svn-id: svn://10.0.0.236/trunk@249277 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
4eab4fc53a
commit
3bbbe87487
@ -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 @@
|
|||||||
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.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user