Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 exploiting the Monastery: (8)
As of 2014-09-17 10:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (72 votes), past polls