[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] One for the Perl Gurus
- Subject: [ale] One for the Perl Gurus
- From: fletch at phydeaux.org (fletch at phydeaux.org)
- Date: Tue, 10 Jan 2006 12:53:23 -0500 (EST)
- In-reply-to: <[email protected]>
- References: <[email protected]>
> I need a good way to sanitize the script other than to do a whole bunch
> of :
>
> $Target =~ s/\./\\./;
perldoc -f quotemeta
That'll automatically do the substitution for any regex metacharacters.
The problem is that you're basically accepting "code" (in the form of a
regex) from untrusted users.
--
Fletch | "If you find my answers frightening, __`'/|
fletch at phydeaux.org| Vincent, you should cease askin' \ o.O'
| scary questions." -- Jules =(___)=
| U