Skip to content

Commit

Permalink
dont allow bootstrap.php file from tests/ to be called via browser
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kaufmann <[email protected]>
  • Loading branch information
d00p committed May 27, 2019
1 parent 3fec579 commit 68f55f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
define('TRAVIS_CI', 1);
}

if (@php_sapi_name() !== 'cli') {
// not to be called via browser
die;
}

$userdata_content = "<?php
\$sql['user'] = 'froxlor010';
\$sql['password'] = '$pwd';
Expand Down

0 comments on commit 68f55f9

Please sign in to comment.