Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix data: urls in images
  • Loading branch information
haarg committed May 12, 2017
1 parent b5af054 commit 6506874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Web/Controller/Pod.pm
Expand Up @@ -174,7 +174,7 @@ sub view : Private {
unless exists $attrs->{$attr};
my $val = $attrs->{$attr};
if ( $attr eq 'src' ) {
if ( $val =~ m{^(?:(?:https?|ftp|data):)?//} ) {
if ( $val =~ m{^(?:(?:https?|ftp):)?//|^data:} ) {

# use directly
}
Expand Down

0 comments on commit 6506874

Please sign in to comment.