Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Is it safe to use external strings for regexes?

by Anonymous Monk
on Oct 06, 2021 at 22:50 UTC ( #11137282=note: print w/replies, xml ) Need Help??


in reply to Re: Is it safe to use external strings for regexes?
in thread Is it safe to use external strings for regexes?

Use taint or no https://perldoc.perl.org/re#'eval'-mode
  • Comment on Re^2: Is it safe to use external strings for regexes?

Replies are listed 'Best First'.
Re^3: Is it safe to use external strings for regexes?
by perlfan (Vicar) on Oct 13, 2021 at 20:08 UTC
    I also took the meat of this question to be about accepting user input, then throwing that into a regex - only to say, don't trust user input directly - as always. There's only one mention of taint in this whole thread, and I am replying to it. :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11137282]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2021-11-27 12:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?