浏览代码

Fixed Trac #422 (detection of magic_quotes_runtime)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1301 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 年之前
父节点
当前提交
427e02d648
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      setup/index.php

+ 6 - 0
setup/index.php

@@ -266,6 +266,12 @@ function CheckPHPVersion(SetupWebPage $oP)
 		$aErrors[] = "'magic_quotes_gpc' is set to On. Please turn it Off before continuing. You may want to check the PHP configuration file(s): '$sPhpIniFile'. Be aware that this setting can also be overridden in the apache configuration.";
 		$bResult = false;
 	}
+  	if (magic_quotes_runtime())
+  	{
+		$aErrors[] = "'magic_quotes_runtime' is set to On. Please turn it Off before continuing. You may want to check the PHP configuration file(s): '$sPhpIniFile'. Be aware that this setting can also be overridden in the apache configuration.";
+		$bResult = false;
+	}
+
 	
 	$sMemoryLimit = trim(ini_get('memory_limit'));
 	if (empty($sMemoryLimit))