Skip to content

Commit 32d7aad

Browse files
committed
Few comments in code.
1 parent c054817 commit 32d7aad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,14 @@ function getFormSubmissionLimit($default = false)
7070
$ini[] = ini_get('suhosin.post.max_vars');
7171
$ini[] = ini_get('suhosin.request.max_vars');
7272

73+
// Filter out any non-numeric settings.
7374
$ini = array_filter($ini, 'is_numeric');
7475

76+
// Find the smallest of all the limits.
7577
$lowest_limit = min($ini);
7678

79+
// If none of the limits were set, then fall back the resulting false to
80+
// the required default.
7781
return ($lowest_limit === false ? $default : $lowest_limit);
7882
}
7983
?>

0 commit comments

Comments
 (0)