Commit d93929e6 authored by IKEDA Soji's avatar IKEDA Soji
Browse files

small fix to avoid crash.

parent 96050678
......@@ -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;
......
Supports Markdown
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