Index: mozilla/webtools/bonsai/globals.pl =================================================================== RCS file: /cvsroot/mozilla/webtools/bonsai/globals.pl,v retrieving revision 1.39 diff -u -r1.39 mozilla/webtools/bonsai/globals.pl --- mozilla/webtools/bonsai/globals.pl +++ mozilla/webtools/bonsai/globals.pl @@ -1084,6 +1084,7 @@ my $script; my $found = 0; my $script_path = dirname($ENV{'SCRIPT_NAME'}); + $script_path =~ s%/$%%; my $referer = $ENV{'HTTP_REFERER'} || ""; foreach $script (@scripts) {