Misc cleanup changes from live tinderbox.
Thanks to Chase Phillips <chase@mozilla.org> for the original patch. Bug #334592 r=bear git-svn-id: svn://10.0.0.236/trunk@202292 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
ab509fe4cd
commit
b169e93edc
@ -600,7 +600,7 @@ sub who_menu {
|
||||
require "$tree/treedata.pl";
|
||||
|
||||
my $qr = '';
|
||||
my $ret = "<a href='$qr' onclick=\"return who(event);\">";
|
||||
my $ret = "<a href=\"$qr\" onclick=\"return who(event);\">";
|
||||
if ($use_viewvc) {
|
||||
$qr = "${viewvc_url}?view=query&who_match=exact&who=" .
|
||||
&url_encode($who) . "&querysort=date&date=explicit" .
|
||||
@ -695,6 +695,7 @@ sub print_javascript {
|
||||
#popup {
|
||||
position: absolute;
|
||||
margin: -5em 0 0 -5em;
|
||||
opacity: 0.9;
|
||||
}
|
||||
.who#popup{
|
||||
border: 0px;
|
||||
|
||||
@ -268,10 +268,14 @@ sub format_time_difference {
|
||||
return $formatted_diff;
|
||||
}
|
||||
|
||||
# This should really adhere to:
|
||||
# http://www.blooberry.com/indexdot/html/topics/urlencoding.htm
|
||||
sub url_encode {
|
||||
my ($s) = @_;
|
||||
|
||||
# First change all percent signs since later encodings use them as escapes.
|
||||
$s =~ s/\%/\%25/g;
|
||||
|
||||
$s =~ s/\=/\%3d/g;
|
||||
$s =~ s/\?/\%3f/g;
|
||||
$s =~ s/ /\%20/g;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user