Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
d93929e6
Commit
d93929e6
authored
Aug 29, 2017
by
IKEDA Soji
Browse files
small fix to avoid crash.
parent
96050678
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Sympa/HTMLSanitizer.pm
View file @
d93929e6
...
...
@@ -95,7 +95,7 @@ sub validate_src_attribute {
# Allow only cid URLs, local URLs and links with the same origin, i.e.
# URLs with the same host etc.
return
$text
if
$uri
->
scheme
and
$uri
->
scheme
eq
'
cid
';
return
$text
unless
$uri
->
authority
;
return
$text
unless
$uri
->
can
('
authority
')
and
$uri
->
authority
;
return
$text
if
$uri
->
authority
=~
$self
->
{
_shsAllowedOriginRe
};
return
undef
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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