Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
8f783f69
Commit
8f783f69
authored
Jun 06, 2003
by
Dries Buytaert
Browse files
- Removed a redundant check_query().
- Removed a bogus check_input().
parent
48bf7db7
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/node.module
View file @
8f783f69
...
...
@@ -69,8 +69,6 @@ function node_tag_new($nid) {
global
$user
;
if
(
$user
->
uid
)
{
$nid
=
check_query
(
$nid
);
$result
=
db_query
(
"SELECT timestamp FROM history WHERE uid = %d AND nid = %d"
,
$user
->
uid
,
$nid
);
if
(
db_fetch_object
(
$result
))
{
db_query
(
"UPDATE history SET timestamp = %d WHERE uid = %d AND nid = %d"
,
time
(),
$user
->
uid
,
$nid
);
...
...
@@ -1154,7 +1152,7 @@ function node_add($type) {
*/
foreach
(
array
(
"title"
,
"teaser"
,
"body"
)
as
$field
)
{
if
(
$_GET
[
"edit"
][
$field
])
{
$node
[
$field
]
=
check_input
(
$_GET
[
"edit"
][
$field
]
)
;
$node
[
$field
]
=
$_GET
[
"edit"
][
$field
];
}
}
$output
=
node_form
(
$node
);
...
...
modules/node/node.module
View file @
8f783f69
...
...
@@ -69,8 +69,6 @@ function node_tag_new($nid) {
global
$user
;
if
(
$user
->
uid
)
{
$nid
=
check_query
(
$nid
);
$result
=
db_query
(
"SELECT timestamp FROM history WHERE uid = %d AND nid = %d"
,
$user
->
uid
,
$nid
);
if
(
db_fetch_object
(
$result
))
{
db_query
(
"UPDATE history SET timestamp = %d WHERE uid = %d AND nid = %d"
,
time
(),
$user
->
uid
,
$nid
);
...
...
@@ -1154,7 +1152,7 @@ function node_add($type) {
*/
foreach
(
array
(
"title"
,
"teaser"
,
"body"
)
as
$field
)
{
if
(
$_GET
[
"edit"
][
$field
])
{
$node
[
$field
]
=
check_input
(
$_GET
[
"edit"
][
$field
]
)
;
$node
[
$field
]
=
$_GET
[
"edit"
][
$field
];
}
}
$output
=
node_form
(
$node
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment