Functions Php



Escaping user input with the escapeshellcmd() function



" method="post">


" name="manpage" />




if ( isset( $_REQUEST['manpage'] ) ) {
  $manpage = escapeshellcmd( $_REQUEST['manpage'] );
  system( "man $manpage | col -b" );
}
?>