Commit ba4d5480 authored by Koosha Khajeh Moogahi's avatar Koosha Khajeh Moogahi Committed by Frédéric Buclin

Bug 635882: html_light_quote() should accept the "target" attribute for links

r/a=LpSolit
parent c988473a
...@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment