Skip to content

Commit ce51807

Browse files
Verifies if exec is not in disable_functions directive
1 parent 6bff21f commit ce51807

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)