Commit ee63b2c9 authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4481 (rescue_shortened_post_request not working on dev-mode)

parent f062d9f8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -82,6 +82,11 @@ function rescue_shortened_post_request()
            }
        }
    }
    global $DEV_MODE;
    if (($DEV_MODE) && (500 < $setting_value)) {
        $setting_value = 500;
        $setting_name = '(dev-mode)';
    }

    if (($setting_value !== null) && ($setting_value > 1/*sanity check*/)) {
        if ((count($_POST) >= $setting_value - 5) || (array_count_recursive($_POST) >= $setting_value - 5)) {