in reply to Re: Simple TCP server recomendations
in thread Simple TCP server recomendations
Since you don't force any particular content on $path (except that it be strictly alphanumeric), you're also exposing any miscellaneous subroutines that happen to be defined. Are you sure that everything that POE exports is safe to be invoked, for example?if ( ! defined &$path ) {
A better strategy would be to narrow the namespace a bit:
which ensures that someone has to go to the trouble to name a subroutine a particular shape before it can be invoked.$path = "remote_request_$path"; ...
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Simple TCP server recomendations
by jasonk (Parson) on Oct 03, 2006 at 12:21 UTC |