Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
ac1eecb7
Commit
ac1eecb7
authored
Nov 25, 2001
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Small update wrt filters.
parent
8d0546bc
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/comment.module
+3
-3
3 additions, 3 deletions
modules/comment.module
modules/comment/comment.module
+3
-3
3 additions, 3 deletions
modules/comment/comment.module
with
6 additions
and
6 deletions
modules/comment.module
+
3
−
3
View file @
ac1eecb7
...
...
@@ -60,7 +60,7 @@ function comment_edit($id) {
}
function
comment_save
(
$id
,
$edit
)
{
db_query
(
"UPDATE comments SET subject = '"
.
check_input
(
$edit
[
subject
])
.
"', comment = '"
.
check_input
(
$edit
[
comment
])
.
"' WHERE cid = '
$id
'"
);
db_query
(
"UPDATE comments SET subject = '"
.
check_input
(
filter
(
$edit
[
subject
])
)
.
"', comment = '"
.
check_input
(
filter
(
$edit
[
comment
])
)
.
"' WHERE cid = '
$id
'"
);
watchdog
(
"special"
,
"comment: modified '
$edit[subject]
'"
);
}
...
...
@@ -98,11 +98,11 @@ function comment_admin() {
print
search_type
(
"comment"
,
"admin.php?mod=comment&op=search"
);
break
;
case
"delete"
:
print
comment_delete
(
check_
input
(
$id
));
print
comment_delete
(
check_
query
(
$id
));
print
comment_overview
();
break
;
case
t
(
"Submit"
)
:
print
status
(
comment_save
(
check_
input
(
$id
),
$edit
));
print
status
(
comment_save
(
check_
query
(
$id
),
$edit
));
print
comment_overview
();
break
;
default
:
...
...
This diff is collapsed.
Click to expand it.
modules/comment/comment.module
+
3
−
3
View file @
ac1eecb7
...
...
@@ -60,7 +60,7 @@ function comment_edit($id) {
}
function
comment_save
(
$id
,
$edit
)
{
db_query
(
"UPDATE comments SET subject = '"
.
check_input
(
$edit
[
subject
])
.
"', comment = '"
.
check_input
(
$edit
[
comment
])
.
"' WHERE cid = '
$id
'"
);
db_query
(
"UPDATE comments SET subject = '"
.
check_input
(
filter
(
$edit
[
subject
])
)
.
"', comment = '"
.
check_input
(
filter
(
$edit
[
comment
])
)
.
"' WHERE cid = '
$id
'"
);
watchdog
(
"special"
,
"comment: modified '
$edit[subject]
'"
);
}
...
...
@@ -98,11 +98,11 @@ function comment_admin() {
print
search_type
(
"comment"
,
"admin.php?mod=comment&op=search"
);
break
;
case
"delete"
:
print
comment_delete
(
check_
input
(
$id
));
print
comment_delete
(
check_
query
(
$id
));
print
comment_overview
();
break
;
case
t
(
"Submit"
)
:
print
status
(
comment_save
(
check_
input
(
$id
),
$edit
));
print
status
(
comment_save
(
check_
query
(
$id
),
$edit
));
print
comment_overview
();
break
;
default
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment