+ implemented checks for max pagesize (#1484484)

release-0.6
till 17 years ago
parent 7dce969fcd
commit c1f160203e

@ -47,6 +47,10 @@ if ($a_user_prefs['pagesize'] < 1)
{
$a_user_prefs['pagesize'] = 10;
}
if (isset($CONFIG['max_pagesize']) && ($a_user_prefs['pagesize'] > $CONFIG['max_pagesize']))
{
$a_user_prefs['pagesize'] = (int) $CONFIG['max_pagesize'];
}
if (rcmail_save_user_prefs($a_user_prefs))
$OUTPUT->show_message('successfullysaved', 'confirmation');

Loading…
Cancel
Save