Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the HTML-StripScripts CPAN distribution.

Report information
The Basics
Id: 87622
Status: rejected
Priority: 0/
Queue: HTML-StripScripts

People
Owner: Nobody in particular
Requestors: slavik.pchelov [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.05
Fixed in: (no value)



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.
hiya Sorry for the delay in responding to this. Spaces are not valid characters in a URL. They should be encoded as %20 On Mon Aug 05 12:11:13 2013, slavik.pchelov@gmail.com wrote: Show quoted text
> 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.