Skip to:
Content

bbPress.org

Ticket #3148: trac-3148-validate-min-max-rows.patch

File trac-3148-validate-min-max-rows.patch, 513 bytes (added by jrf, 9 years ago)
  • src/includes/admin/classes/class-bbp-converter.php

     
    254254
    255255                        // Rows
    256256                        '_bbp_converter_rows' => ! empty( $_POST['_bbp_converter_rows'] )
    257                                 ? (int) $_POST['_bbp_converter_rows']
     257                                ? min( max( (int) $_POST['_bbp_converter_rows'], 1 ), 5000 )
    258258                                : 0,
    259259
    260260                        // Platform