#10033: by Jonbob, make sure no filter check is done until the first preview.

4.5.x
Steven Wittens 2004-08-13 18:17:10 +00:00
parent a36304af0d
commit cb36ef37cc
4 changed files with 4 additions and 4 deletions

View File

@ -458,7 +458,7 @@ function comment_validate_form($edit) {
/*
** Validate filter format
*/
if (!filter_access($edit['format'])) {
if (array_key_exists('format', $edit) && !filter_access($edit['format'])) {
form_set_error('format', t('The supplied input format is invalid.'));
}

View File

@ -458,7 +458,7 @@ function comment_validate_form($edit) {
/*
** Validate filter format
*/
if (!filter_access($edit['format'])) {
if (array_key_exists('format', $edit) && !filter_access($edit['format'])) {
form_set_error('format', t('The supplied input format is invalid.'));
}

View File

@ -1097,7 +1097,7 @@ function node_validate($node) {
node_invoke_nodeapi($node, 'validate');
// Check input format access
if (!filter_access($node->format)) {
if (array_key_exists('format', $node) && !filter_access($node->format)) {
form_set_error('format', t('The supplied input format is invalid.'));
}

View File

@ -1097,7 +1097,7 @@ function node_validate($node) {
node_invoke_nodeapi($node, 'validate');
// Check input format access
if (!filter_access($node->format)) {
if (array_key_exists('format', $node) && !filter_access($node->format)) {
form_set_error('format', t('The supplied input format is invalid.'));
}