Skip to content

Commit

Permalink
fix a security bugs in command line entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
phith0n committed Apr 23, 2019
1 parent 03e1f99 commit e4f737b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/chip
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<?php
if (PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg') {
echo 'Warning: Chip should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL;
exit;
}

require __DIR__ . '/../vendor/autoload.php';
Expand Down

0 comments on commit e4f737b

Please sign in to comment.