in reply to Re: Re: unix write command through system
in thread unix write command through system
That way if someone tries to pass in a $message of '; rm -rf /; echo ' then, it's cool, you just write that out, not execute it.for ($message,$user,tty) { s/'/'\\''/g; } system("echo '$message' |/usr/bin/write '$user' '$tty'");
|
|---|