Skip to content

Commit 037a010

Browse files
author
Daniel Bachhuber
committed
Merge pull request #83 from tiagohillebrandt/master
Verifies if exec is not in disable_functions directive
2 parents 6bff21f + 6b86160 commit 037a010

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cli/Shell.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static public function columns() {
3737
break;
3838
}
3939
}
40-
} else {
40+
} else if (!preg_match('/(^|,)(\s*)?exec(\s*)?(,|$)/', ini_get('disable_functions'))) {
4141
$columns = (int) exec('/usr/bin/env tput cols');
4242
}
4343

0 commit comments

Comments
 (0)