fix_gpc_magic accesses the super-global variable $_POST.
public function fix_gpc_magic()
{
static $fixed = false;
if (!$fixed && ini_get('magic_quotes_gpc')) {
array_walk($_GET, '_fix_gpc_magic');
fix_gpc_magic accesses the super-global variable $_FILES.
public function fix_gpc_magic()
{
static $fixed = false;
if (!$fixed && ini_get('magic_quotes_gpc')) {
array_walk($_GET, '_fix_gpc_magic');
fix_gpc_magic accesses the super-global variable $_COOKIE.
public function fix_gpc_magic()
{
static $fixed = false;
if (!$fixed && ini_get('magic_quotes_gpc')) {
array_walk($_GET, '_fix_gpc_magic');
fix_gpc_magic accesses the super-global variable $_GET.
public function fix_gpc_magic()
{
static $fixed = false;
if (!$fixed && ini_get('magic_quotes_gpc')) {
array_walk($_GET, '_fix_gpc_magic');
fix_gpc_magic accesses the super-global variable $_REQUEST.
public function fix_gpc_magic()
{
static $fixed = false;
if (!$fixed && ini_get('magic_quotes_gpc')) {
array_walk($_GET, '_fix_gpc_magic');
The method _fix_gpc_magic uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
else {
$item = stripslashes($item);
}
The method _fix_gpc_magic_files uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
else {
$item = stripslashes($item);
}
Avoid unused private methods such as '_fix_gpc_magic'.
private static function _fix_gpc_magic(&$item)
{
if (is_array($item)) {
array_walk($item, '_fix_gpc_magic');
}
Avoid unused private methods such as '_fix_gpc_magic_files'.
private static function _fix_gpc_magic_files(&$item, $key)
{
if ($key != 'tmp_name') {
if (is_array($item)) {
array_walk($item, '_fix_gpc_magic_files');
Method name "Kernal::_fix_gpc_magic_files" is not in camel caps format
private static function _fix_gpc_magic_files(&$item, $key)
Method name "Kernal::fix_gpc_magic" is not in camel caps format
public function fix_gpc_magic()
Method name "Kernal::_fix_gpc_magic" is not in camel caps format
private static function _fix_gpc_magic(&$item)
Blank line found at end of control structure
Method name "_fix_gpc_magic_files" should not be prefixed with an underscore to indicate visibility
private static function _fix_gpc_magic_files(&$item, $key)
Method name "_fix_gpc_magic" should not be prefixed with an underscore to indicate visibility
private static function _fix_gpc_magic(&$item)
Blank line found at end of control structure
Expected 1 space after closing brace; newline found
}
Line indented incorrectly; expected at least 16 spaces, found 14
$item = stripslashes($item);
Line indented incorrectly; expected at least 16 spaces, found 14
array_walk($item, '_fix_gpc_magic_files');
Expected 1 space after closing brace; newline found
}
The method _fix_gpc_magic is not named in camelCase.
private static function _fix_gpc_magic(&$item)
{
if (is_array($item)) {
array_walk($item, '_fix_gpc_magic');
}
The method fix_gpc_magic is not named in camelCase.
public function fix_gpc_magic()
{
static $fixed = false;
if (!$fixed && ini_get('magic_quotes_gpc')) {
array_walk($_GET, '_fix_gpc_magic');
The method _fix_gpc_magic_files is not named in camelCase.
private static function _fix_gpc_magic_files(&$item, $key)
{
if ($key != 'tmp_name') {
if (is_array($item)) {
array_walk($item, '_fix_gpc_magic_files');
There are no issues that match your filters.