Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Joakim Saario
aurweb
Commits
1369eb87
Commit
1369eb87
authored
Apr 05, 2020
by
Lukas Fleischer
Browse files
Fix invalid session ID check
Signed-off-by:
Lukas Fleischer
<
lfleischer@archlinux.org
>
parent
853ed9a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
web/lib/aur.inc.php
View file @
1369eb87
...
...
@@ -50,7 +50,7 @@ function check_sid() {
$result
=
$dbh
->
query
(
$q
);
$row
=
$result
->
fetch
(
PDO
::
FETCH_NUM
);
if
(
!
$row
[
0
]
)
{
if
(
!
$row
)
{
# Invalid SessionID - hacker alert!
#
$failed
=
1
;
...
...
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