[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.8-232-gf7a66ac

Thomas Sibley trs at bestpractical.com
Fri Dec 17 13:18:34 EST 2010


The branch, 3.8-trunk has been updated
       via  f7a66ac50f47b8ac19100e27ecf62aa9943a915b (commit)
      from  e0819e6bc7ad78f388303c4c62951f46882c5289 (commit)

Summary of changes:
 share/html/Ticket/Elements/EditCustomFields |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit f7a66ac50f47b8ac19100e27ecf62aa9943a915b
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Fri Dec 17 13:18:21 2010 -0500

    Make sure to escape the entire CF name

diff --git a/share/html/Ticket/Elements/EditCustomFields b/share/html/Ticket/Elements/EditCustomFields
index 8b4a0c0..0f0744b 100755
--- a/share/html/Ticket/Elements/EditCustomFields
+++ b/share/html/Ticket/Elements/EditCustomFields
@@ -51,7 +51,7 @@
 % while ( my $CustomField = $CustomFields->Next ) {
 % next unless $CustomField->CurrentUserHasRight('ModifyCustomField');
 % my $escaped_name = lc $CustomField->Name;
-% $escaped_name =~ s/[^a-z0-9_-]/_/;
+% $escaped_name =~ s/[^a-z0-9_-]/_/g;
 % my $type = $CustomField->Type || 'Unknown';
 % $i++;
 % if ( $single_column || $i % 2 ) {

-----------------------------------------------------------------------


More information about the Rt-commit mailing list