Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
1eeb2fb8
Commit
1eeb2fb8
authored
Jan 19, 2002
by
dkl%redhat.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug 119060 - Use of Template.pm filters for url and html encoding. r=jake,dkl
parent
7f11d4f1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
8 deletions
+2
-8
sidebar.cgi
sidebar.cgi
+0
-5
004template.t
t/004template.t
+1
-2
xul.tmpl
template/default/sidebar/xul.tmpl
+1
-1
No files found.
sidebar.cgi
View file @
1eeb2fb8
...
@@ -40,11 +40,6 @@ my $template = Template->new(
...
@@ -40,11 +40,6 @@ my $template = Template->new(
# Allow templates to be specified with relative paths.
# Allow templates to be specified with relative paths.
RELATIVE
=>
1
,
RELATIVE
=>
1
,
POST_CHOMP
=>
1
,
POST_CHOMP
=>
1
,
# Functions for processing text within templates
FILTERS
=>
{
url
=>
\&
url_quote
,
},
}
}
);
);
...
...
t/004template.t
View file @
1eeb2fb8
...
@@ -60,8 +60,7 @@ my $template = Template->new(
...
@@ -60,8 +60,7 @@ my $template = Template->new(
# actually have to function in this test, just be defined.
# actually have to function in this test, just be defined.
FILTERS
=>
FILTERS
=>
{
{
url
=>
sub
{
return
$_
}
,
},
}
}
}
);
);
...
...
template/default/sidebar/xul.tmpl
View file @
1eeb2fb8
...
@@ -100,7 +100,7 @@ function normal_keypress_handler( aEvent ) {
...
@@ -100,7 +100,7 @@ function normal_keypress_handler( aEvent ) {
[% END %]
[% END %]
[% FOREACH name = namedqueries %]
[% FOREACH name = namedqueries %]
<text
class=
"text-link"
onclick=
"load_relative_url('buglist.cgi?cmdtype=runnamed&namedcmd=[% name FILTER ur
l
%]')"
value=
"[% name FILTER html %]"
/>
<text
class=
"text-link"
onclick=
"load_relative_url('buglist.cgi?cmdtype=runnamed&namedcmd=[% name FILTER ur
i
%]')"
value=
"[% name FILTER html %]"
/>
[% END %]
[% END %]
[% IF NOT username %]
[% IF NOT username %]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment