MDL-47287 prevent web access to phpunit boostrap
This commit is contained in:
committed by
Marina Glancy
parent
818a6ef982
commit
0baf976363
@@ -26,6 +26,10 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
if (isset($_SERVER['REMOTE_ADDR'])) {
|
||||
die; // No access from web!
|
||||
}
|
||||
|
||||
// we want to know about all problems
|
||||
error_reporting(E_ALL | E_STRICT);
|
||||
ini_set('display_errors', '1');
|
||||
|
||||
Reference in New Issue
Block a user