Skip to content

Commit

Permalink
Merge pull request #83 from tiagohillebrandt/master
Browse files Browse the repository at this point in the history
Verifies if exec is not in disable_functions directive
  • Loading branch information
Daniel Bachhuber committed Aug 10, 2015
2 parents 6bff21f + 6b86160 commit 037a010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli/Shell.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static public function columns() {
break;
}
}
} else {
} else if (!preg_match('/(^|,)(\s*)?exec(\s*)?(,|$)/', ini_get('disable_functions'))) {
$columns = (int) exec('/usr/bin/env tput cols');
}

Expand Down

0 comments on commit 037a010

Please sign in to comment.