Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
cb36ef37
Commit
cb36ef37
authored
Aug 13, 2004
by
Steven Wittens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#10033
: by Jonbob, make sure no filter check is done until the first preview.
parent
a36304af
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
modules/comment.module
modules/comment.module
+1
-1
modules/comment/comment.module
modules/comment/comment.module
+1
-1
modules/node.module
modules/node.module
+1
-1
modules/node/node.module
modules/node/node.module
+1
-1
No files found.
modules/comment.module
View file @
cb36ef37
...
...
@@ -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.'
));
}
...
...
modules/comment/comment.module
View file @
cb36ef37
...
...
@@ -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.'
));
}
...
...
modules/node.module
View file @
cb36ef37
...
...
@@ -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.'
));
}
...
...
modules/node/node.module
View file @
cb36ef37
...
...
@@ -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.'
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment