Subject: | Image src attribute |
perl:
v5.16.3
It cuts image src attribute (returning empty value for $element->{'attr'}{'src'} see below) for file names containing spaces, for example: "../../imag/BV/thisims fan 1.jpg" (script and content is utf8 encoded).
When I remove the white spaces from image name (=~ s/\s+//g), it works as it should.
Settings:
Context => 'Flow',
BanAllBut => $v{available_tags},
AllowSrc => 1,
AllowHref => 0,
AllowRelURL => 1,
AllowMailto => 0,
EscapeFiltered => 0,
Rules => {img => {
"*" => 0,
src => 1,
align => 1,
tag => sub {
my ($filter, $element) = (@_);
$element->{'attr'}{'alt'} = '';
$element->{'attr'}{'border'} = '0';
return 1;
}
},
"*" => {
align => 0,
class => 0,
style => 0,
rel => 0,
title => 0,
id => 0,
target =>0,
lang => 0,
color => 0,
onclick => 0,
ondblclick => 0,
onmousedown => 0,
onmouseup => 0,
onmouseover => 0,
onmousemove => 0,
onmouseout => 0,
onkeypress => 0,
onkeydown => 0,
onkeyup => 0
}
}
Regards.