Fix for Code

  1. <?php
  2. $binary = '/user/local/bin/aspell';
  3. exec('which ' . $binary, $output, $code);
  4.  
  5. // $binary is in reality a variable set by an administrator. Should it be wrapped with escapeshellarg() or escapeshellcmd()?

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.