Well, you'll have to keep in mind that "(L)users are evil"™
Your first answer was already better, but I'm not exactly sure how Perl would handle input like "../../../../etc/passwd\0" (read: too lazy to test it). A little more secure would be to store the allowed files in a hash or array and give those choices to the l-user.
In reply to Re: Array values reformation
by b10m
in thread Array values reformation
by Nik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |