Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Is dynamic loading of pm's a bad thing?

by matija (Priest)
on Jun 24, 2004 at 17:24 UTC ( #369422=note: print w/replies, xml ) Need Help??


in reply to Is dynamic loading of pm's a bad thing?

Don't "strip dodgy characters" - you can never be sure that you got them all.

Your best bet would be to read the directory where the plugins are stored, and make a list of available plugins. Then compare the elements of that list with the parameter you got. That way, the user input only gets processed by the string comparison operator, which is much harder to fool than the directory listing functions.

  • Comment on Re: Is dynamic loading of pm's a bad thing?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (13)
As of 2016-09-29 12:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (552 votes). Check out past polls.