mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
MDL-47287 prevent web access to phpunit boostrap
This commit is contained in:
parent
d9fb78c981
commit
1993cc02b6
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user