Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks.
I've added code to purge files in a temp directory whenever I log into a website as admin.
As I understand it, Perl won't let you unlink files when taint mode is activated in the shebang line.
Aside from running a crontab on the server to periodically tidy up my temp folder, is there another way to do this using Perl (without compromising my site's security by foregoing taint mode)? Or is best practice to use a crontab?
Thank you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unlinking Files and Taint Mode
by wind (Priest) on Apr 05, 2011 at 19:07 UTC | |
|
Re: Unlinking Files and Taint Mode
by chrestomanci (Priest) on Apr 05, 2011 at 21:15 UTC | |
|
Re: Unlinking Files and Taint Mode
by Anonymous Monk on Apr 05, 2011 at 21:46 UTC |