V2:Default configuration settings
From PhpInputValidator
These are the default configuration settings for phpInputValidator
Contents |
add_slashes_function
'add_slashes_function' => ''
append_unset
'append_unset' => array(
'GLOBALS' => true,
'_GET' => true,
'_POST' => true,
'_COOKIE' => true,
'_REQUEST' => true,
'_SERVER' => true,
'_SESSION' => true,
'_ENV' => true,
'_FILES' => true,
)
'GLOBALS' => true,
'_GET' => true,
'_POST' => true,
'_COOKIE' => true,
'_REQUEST' => true,
'_SERVER' => true,
'_SESSION' => true,
'_ENV' => true,
'_FILES' => true,
)
date_format
'date_format' => 'D, d M Y H:i'
error_log
'error_log' => 'error_log.txt'
html_purifier_config
'html_purifier_config' => array(
array('HTML', 'TidyLevel', 'heavy'),
array('HTML', 'Doctype', 'XHTML 1.0 Transitional'),
array('Core', 'EscapeNonASCIICharacters', true),
)
array('HTML', 'TidyLevel', 'heavy'),
array('HTML', 'Doctype', 'XHTML 1.0 Transitional'),
array('Core', 'EscapeNonASCIICharacters', true),
)
html_purifier_path
'html_purifier_path' => ''
language
'language' => 'en_us'
log_path
Absolute path to phpInputvalidator/logs/
security
'security' => array()
unset_variables
'unset_variables' => _PIV_UNSET_GLOBALS
Note
define('_PIV_UNSET_GLOBALS', (!function_exists('ini_get') || @ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals')) == 'on'));