Skip to content
This repository was archived by the owner on Jun 18, 2022. It is now read-only.

Commit ce51807

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)