forked from leftypol/leftypol
post.php: use hash_equals to compare post deletion password
This commit is contained in:
parent
27286cdcee
commit
169bf13f5d
1 changed files with 2 additions and 2 deletions
4
post.php
4
post.php
|
@ -512,8 +512,8 @@ function handle_delete()
|
||||||
|
|
||||||
if (
|
if (
|
||||||
$password != ''
|
$password != ''
|
||||||
&& $post['password'] != $password
|
&& !hash_equals($post['password'], $password)
|
||||||
&& (!$thread || $thread['password'] != $password)
|
&& (!$thread || !hash_equals($thread['password'], $password))
|
||||||
&& !$is_mod
|
&& !$is_mod
|
||||||
) {
|
) {
|
||||||
error($config['error']['invalidpassword']);
|
error($config['error']['invalidpassword']);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue