We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c054817 commit 32d7aadCopy full SHA for 32d7aad
index.php
@@ -70,10 +70,14 @@ function getFormSubmissionLimit($default = false)
70
$ini[] = ini_get('suhosin.post.max_vars');
71
$ini[] = ini_get('suhosin.request.max_vars');
72
73
+ // Filter out any non-numeric settings.
74
$ini = array_filter($ini, 'is_numeric');
75
76
+ // Find the smallest of all the limits.
77
$lowest_limit = min($ini);
78
79
+ // If none of the limits were set, then fall back the resulting false to
80
+ // the required default.
81
return ($lowest_limit === false ? $default : $lowest_limit);
82
}
83
?>
0 commit comments