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
ba4d5480
Commit
ba4d5480
authored
Jun 26, 2012
by
Koosha Khajeh Moogahi
Committed by
Frédéric Buclin
Jun 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 635882: html_light_quote() should accept the "target" attribute for links
r/a=LpSolit
parent
c988473a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
Util.pm
Bugzilla/Util.pm
+7
-6
No files found.
Bugzilla/Util.pm
View file @
ba4d5480
...
@@ -136,12 +136,13 @@ sub html_light_quote {
...
@@ -136,12 +136,13 @@ sub html_light_quote {
# Specific rules for allowed elements. If no specific rule is set
# Specific rules for allowed elements. If no specific rule is set
# for a given element, then the default is used.
# for a given element, then the default is used.
my
@rules
=
(
a
=>
{
my
@rules
=
(
a
=>
{
href
=>
$protocol_regexp
,
href
=>
$protocol_regexp
,
title
=>
1
,
target
=>
qr{^(?:_blank|_parent|_self|_top)$}
i
,
id
=>
1
,
title
=>
1
,
name
=>
1
,
id
=>
1
,
class
=>
1
,
name
=>
1
,
'*'
=>
0
,
# Reject all other attributes.
class
=>
1
,
'*'
=>
0
,
# Reject all other attributes.
},
},
blockquote
=>
{
blockquote
=>
{
cite
=>
$protocol_regexp
,
cite
=>
$protocol_regexp
,
...
...
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