Fix so "Action disabled" error uses more appropriate 404 code (#5440)

pull/5335/merge
Aleksander Machniak 8 years ago
parent 761308e85a
commit 24b4ca52cf

@ -56,6 +56,7 @@ CHANGELOG Roundcube Webmail
- Fix so folders list is scrolled to the selected folder on page load (#5424)
- Fix so when moving to Trash we make sure the folder exists (#5192)
- Fix displaying size of attachments with zero size
- Fix so "Action disabled" error uses more appropriate 404 code (#5440)
RELEASE 1.2.1
-------------

@ -243,7 +243,7 @@ else {
$disabled_actions = (array) $RCMAIL->config->get('disabled_actions');
if (in_array($RCMAIL->task . '.' . ($RCMAIL->action ?: 'index'), $disabled_actions)) {
rcube::raise_error(array(
'code' => 403, 'type' => 'php',
'code' => 404, 'type' => 'php',
'message' => "Action disabled"), true, true);
}
}

Loading…
Cancel
Save