in reply to Re: Unlink under taint mode
in thread Unlink under taint mode

Hey Postulant,

Thatīs exactly the problem! Thanks a lot! I do use a specific locale. I had already managed to clean the $string out, with a pattern that didnīt have the \w and didnīt know why I succeeded. Thatīs it.

By the way, Iīve found a simpler way to test if a variable is tainted, without having to use any extra module:

if ( is_tainted($input) ) { die "tainted"; } else { die "not tainted"; + } sub is_tainted { return ! eval { join('',@_), kill 0; 1; }; }
Thank you all!

Take Care

André