1
0

Add google ping

safer check for "filter" extension
This commit is contained in:
Garvin Hicking
2006-10-11 18:59:31 +00:00
parent f5f0a66acc
commit 0674c0256f
5 changed files with 15 additions and 9 deletions

View File

@@ -101,7 +101,7 @@ if (!isset($_SERVER)) {
$_SERVER = &$HTTP_SERVER_VARS;
}
if (extension_loaded('filter') && input_name_to_filter(ini_get('filter.default')) !== FILTER_UNSAFE_RAW) {
if (extension_loaded('filter') && function_exists('input_name_to_filter') && input_name_to_filter(ini_get('filter.default')) !== FILTER_UNSAFE_RAW) {
foreach ($_POST as $key => $value) {
$_POST[$key] = input_get(INPUT_POST, $key, FILTER_UNSAFE_RAW);
}