From 78bc68f304b83a965e4223887d9443eb12bf91b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Thu, 10 Jan 2008 22:47:17 +0000 Subject: Drupal 6 RC2 --- modules/system/system.install | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/system/system.install') diff --git a/modules/system/system.install b/modules/system/system.install index 4a7868a79..be9fbcf5b 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -52,6 +52,10 @@ function system_requirements($phase) { $requirements['webserver']['description'] = $t('Unable to determine your web server type and version. Drupal might not work properly.'); $requirements['webserver']['severity'] = REQUIREMENT_WARNING; } + if (ini_get('register_globals')) { + $requirements['php']['description'] = $t('register_globals is enabled. Drupal requires this configuration directive to be disabled. Your site may not be secure when register_globals is enabled. The PHP manual has instructions for how to change configuration settings.'); + $requirements['php']['severity'] = REQUIREMENT_ERROR; + } // Test PHP version $requirements['php'] = array( -- cgit v1.2.3