in reply to Re^2: Array values reformation
in thread Array values reformation

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.

--
b10m

All code is usually tested, but rarely trusted.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.