[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.5-274-g2af50eb

Kevin Falcone falcone at bestpractical.com
Wed Oct 7 15:47:45 EDT 2009


The branch, 3.8-trunk has been updated
       via  2af50eb2d8f789008708a3c442862273b8805571 (commit)
      from  bca90b7bc4ca7e7bae277fd3c6f437cb148dbe16 (commit)

Summary of changes:
 share/html/Widgets/TitleBoxStart |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 2af50eb2d8f789008708a3c442862273b8805571
Author: Guy Halse <G.halse at ru.ac.za>
Date:   Wed Oct 7 15:46:33 2009 -0400

    Fix rollup() function to always generate valid ids
    
    Occasionally an id would contain = and this would break titlebox rollups
    when revisiting a ticket display page

diff --git a/share/html/Widgets/TitleBoxStart b/share/html/Widgets/TitleBoxStart
index 09917dc..624642e 100755
--- a/share/html/Widgets/TitleBoxStart
+++ b/share/html/Widgets/TitleBoxStart
@@ -88,7 +88,7 @@ my $title_b64 = MIME::Base64::encode_base64(Encode::encode_utf8($title), '');
 my $tid  = "TitleBox--$page--" .
             join '--', ($class, $bodyclass, $title_b64, $id);
 
-$tid =~ s{[/\s'\\]+}{_}g;
+$tid =~ s{[^A-Za-z0-9\-_:\.]+}{_}g;
 
 my $i = 0;
 $i++ while $m->notes("$tid-$i");

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


More information about the Rt-commit mailing list