Skip Menu |
 

This queue is for tickets about the File-Path CPAN distribution.

Report information
The Basics
Id: 73840
Status: resolved
Priority: 0/
Queue: File-Path

People
Owner: RICHE [...] cpan.org
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.08
Fixed in: 2.10_001



Subject: Minor bug in rmtree with newlines in CWD
Download (untitled) / with headers
text/plain 479b
It looks like the untaint line in sub rmtree needs a /s flag adding, ie for ($arg->{cwd}) { /\A(.*)\Z/; $_ = $1 } # untaint should be changed to for ($arg->{cwd}) { /\A(.*)\Z/s; $_ = $1 } # untaint Else weird things happen if the CWD has a newline in it ($arg->{cwd} will be set to $1, which will be set from any previous regex match, since the /\A(.*)\Z/ match will fail). This usually results in rmtree incorrectly failing with a weird "cannot stat" error message. David
Download (untitled) / with headers
text/plain 109b
This issue has been resolved in dev release http://search.cpan.org/~riche/File-Path/Path.pm version 2.10_001.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.