in reply to better ways than eval to dynamic load a module
so i don't need to have "/" or "\" in $op, that's why the regexp is so strict. The reason to ask, is that imho "require" makes a BIG securiry issue, when the regexp is missing, you'd be able to do things like thisuse FindBin; use lib "$FindBin::Bin/PathWithModulesOfMyApp";
and think of more nasty things to do.http://127.0.0.1/cgi-bin/script.pl?option=%60touch%20/tmp/HA_I_CAN_WRI +TE_ON_YOUR_HARDDISK.txt%60
|
|---|