[Rt-commit] rt branch, 4.0/tab-canonicalize-request-path, updated. rt-4.0.5-118-gbb92d68

? sunnavy sunnavy at bestpractical.com
Tue Jun 19 12:06:18 EDT 2012


The branch, 4.0/tab-canonicalize-request-path has been updated
       via  bb92d68d15a86dc40a039ab79a15ee35e94bc682 (commit)
      from  86d60bf4838420f0c5afbadfd074e240d1b9190b (commit)

Summary of changes:
 share/html/Elements/Tabs |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit bb92d68d15a86dc40a039ab79a15ee35e94bc682
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Jun 19 23:56:35 2012 +0800

    squeeze all repeated slashes into a single one

diff --git a/share/html/Elements/Tabs b/share/html/Elements/Tabs
index 3d30347..8f91446 100755
--- a/share/html/Elements/Tabs
+++ b/share/html/Elements/Tabs
@@ -50,7 +50,7 @@
 <%INIT>
 
 my $request_path = $HTML::Mason::Commands::r->path_info;
-$request_path =~ s!^/{2,}!/!;
+$request_path =~ s!/{2,}!/!;
 
 my $query_string = sub {
     my %args = @_;

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


More information about the Rt-commit mailing list