# HG changeset patch # User Heiko Schlittermann # Date 1239716253 -7200 # Node ID ddf323751753281345b0a269c42ff003ba66175b # Parent 8cd92042fb8b04504859e112359d3a7ea116cc34 code: untaint the hostname (as passed from commandline) diff -r 8cd92042fb8b -r ddf323751753 sap-vpn.pl --- a/sap-vpn.pl Tue Jan 06 09:55:50 2009 +0100 +++ b/sap-vpn.pl Tue Apr 14 15:37:33 2009 +0200 @@ -94,6 +94,7 @@ $opt_verbose += $opt_debug; + untaint($opt_host) or ohshit "hostname didn't pass verification\n"; untaint($opt_linkname) or ohshit "linkname didn't pass verification\n"; untaint($opt_script) or ohshit "script name didn't pass verification\n"