Skip to content

Commit

Permalink
Remove white list
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjoelkemp committed Oct 26, 2013
1 parent 5aa8b40 commit f8a4899
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions eval/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@
$whiteList = array('print_r', 'preg_match', 'preg_replace', 'preg_match_all');

$sandbox = new \PHPSandbox\PHPSandbox();

$sandbox->blacklist_func($blackList);
$sandbox->whitelist_func($whiteList);
// $sandbox->whitelist_func($whiteList);
$sandbox->allow_functions = true;
$sandbox->allow_closures = true;
$sandbox->allow_constants = true;
Expand Down

0 comments on commit f8a4899

Please sign in to comment.