зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug 119060 - Use of Template.pm filters for url and html encoding. r=jake,dkl
This commit is contained in:
Родитель
d4fc82cfb8
Коммит
be9e066b76
|
@ -40,11 +40,6 @@ my $template = Template->new(
|
|||
# Allow templates to be specified with relative paths.
|
||||
RELATIVE => 1,
|
||||
POST_CHOMP =>1,
|
||||
# Functions for processing text within templates
|
||||
FILTERS =>
|
||||
{
|
||||
url => \&url_quote,
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
@ -60,8 +60,7 @@ my $template = Template->new(
|
|||
# actually have to function in this test, just be defined.
|
||||
FILTERS =>
|
||||
{
|
||||
url => sub { return $_ } ,
|
||||
}
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ function normal_keypress_handler( aEvent ) {
|
|||
[% END %]
|
||||
|
||||
[% FOREACH name = namedqueries %]
|
||||
<text class="text-link" onclick="load_relative_url('buglist.cgi?cmdtype=runnamed&namedcmd=[% name FILTER url %]')" value="[% name FILTER html %]"/>
|
||||
<text class="text-link" onclick="load_relative_url('buglist.cgi?cmdtype=runnamed&namedcmd=[% name FILTER uri %]')" value="[% name FILTER html %]"/>
|
||||
[% END %]
|
||||
|
||||
[% IF NOT username %]
|
||||
|
|
Загрузка…
Ссылка в новой задаче