com web/bugs: we hash the bug passwords for some time: include/functions.php
| From: | Ferenc Kovacs | Date: | Tue, 08 May 2012 22:03:36 +0000 |
| Subject: | com web/bugs: we hash the bug passwords for some time: include/functions.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-13489@lists.php.net to get a copy of this message | ||
Commit: 435e06184ed46f9e018072249a273489c02fcdca
Author: Ferenc Kovacs <tyra3l@gmail.com> Wed, 9 May 2012 00:03:36 +0200
Parents: 0d25208157b2ecb53fbba5b0a4f07374cdcd176c
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=435e06184ed46f9e018072249a273489c02fcdca
Log:
we hash the bug passwords for some time
Changed paths:
M include/functions.php
Diff:
diff --git a/include/functions.php b/include/functions.php
index ae9597b..cc62532 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -114,7 +114,7 @@ function bugs_has_access ($bug_id, $bug, $pw, $user_flags)
if ($user_flags & (BUGS_SECURITY_DEV | BUGS_TRUSTED_DEV)) {
// trusted and security dev
return true;
- } else if (($user_flags == BUGS_NORMAL_USER) && $pw != '' &&
verify_bug_passwd($bug_id, $pw)) {
+ } else if (($user_flags == BUGS_NORMAL_USER) && $pw != '' &&
verify_bug_passwd($bug_id, bugs_get_hash($pw))) {
// The submitter
return true;
} else if (($user_flags & BUGS_DEV_USER) && $bug['reporter_name'] !=
'' &&