Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Using form return value as subroutine name

by Discipulus (Abbot)
on Jul 15, 2021 at 11:33 UTC ( #11135024=note: print w/replies, xml ) Need Help??


in reply to Using form return value as subroutine name

Hello phirun

generally speaking... never trust user input!! :)

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: Using form return value as subroutine name
by perlfan (Vicar) on Jul 15, 2021 at 14:41 UTC
    AnomalousMonk's solution generally solves this issue by creating an effective white list of acceptible keys, checked ahead of time with a simple exists or defined.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2021-09-22 22:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?