in reply to Re^2: having horrors untainting a path string for moving a file
in thread having horrors untainting a path string for moving a file
orFile::Copy::move($a{from}, $a{to});
is much safer! He'll might still need to untaint $ENV{PATH} (by setting it to a known value), but there's no shell involved. mv sets the error result, so that can be used instead of capturing the output.system('/bin/mv', $a{from}, $a{to});
|
|---|