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
1a2f8acb
Commit
1a2f8acb
authored
May 19, 2003
by
Kjartan Mannes
Browse files
- Patch by Jonathan Chaffer: $_SERVER["op"] -> $_POST["op"]
parent
b5e644d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/user.module
View file @
1a2f8acb
...
...
@@ -67,7 +67,7 @@ function user_load($array = array()) {
foreach
(
$array
as
$key
=>
$value
)
{
if
(
$key
==
"pass"
)
{
$query
.
=
"u.
$key
= '"
.
md5
(
$value
)
.
"' AND "
;
}
}
else
{
$query
.
=
"u.
$key
= '"
.
check_query
(
$value
)
.
"' AND "
;
}
...
...
@@ -1384,7 +1384,7 @@ function user_admin_role($edit = array()) {
function
user_admin_edit
(
$edit
=
array
())
{
$op
=
$_
SERVER
[
"op"
];
$op
=
$_
POST
[
"op"
];
$id
=
arg
(
3
);
if
(
$account
=
user_load
(
array
(
"uid"
=>
$id
)))
{
...
...
modules/user/user.module
View file @
1a2f8acb
...
...
@@ -67,7 +67,7 @@ function user_load($array = array()) {
foreach
(
$array
as
$key
=>
$value
)
{
if
(
$key
==
"pass"
)
{
$query
.
=
"u.
$key
= '"
.
md5
(
$value
)
.
"' AND "
;
}
}
else
{
$query
.
=
"u.
$key
= '"
.
check_query
(
$value
)
.
"' AND "
;
}
...
...
@@ -1384,7 +1384,7 @@ function user_admin_role($edit = array()) {
function
user_admin_edit
(
$edit
=
array
())
{
$op
=
$_
SERVER
[
"op"
];
$op
=
$_
POST
[
"op"
];
$id
=
arg
(
3
);
if
(
$account
=
user_load
(
array
(
"uid"
=>
$id
)))
{
...
...
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