[web-master] main: Remove old cvsauth token
| From: | Nikita Popov | Date: | Thu, 08 Apr 2021 13:42:36 +0000 |
| Subject: | [web-master] main: Remove old cvsauth token | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-29210@lists.php.net to get a copy of this message | ||
Author: Nikita Popov (nikic)
Date: 2021-04-08T15:41:53+02:00
Commit: https://github.com/php/web-master/commit/fd6f330637290e93968a7cf20a65ad103b7bd884
Raw diff: https://github.com/php/web-master/commit/fd6f330637290e93968a7cf20a65ad103b7bd884.diff
Remove old cvsauth token
Because I missed the "return" this didn't actually work as it
was supposed to ... but the tokens are now replaced anyway.
Changed paths:
M public/fetch/cvsauth.php
Diff:
diff --git a/public/fetch/cvsauth.php b/public/fetch/cvsauth.php
index e0aa747..5946d4d 100644
--- a/public/fetch/cvsauth.php
+++ b/public/fetch/cvsauth.php
@@ -64,11 +64,6 @@ function exit_success() {
}
function is_valid_cvsauth_token($token) {
- // Legacy token.
- if (md5($token) === "73864a7c89d97a13368fc213075036d1") {
- true;
- }
-
$hash = sha1($token);
return $hash === 'c3d7b24474fc689f7144bb5c2fd403d939634b7e' // bugs.php.net
|| $hash === 'd4d4d68b78dc80fff48967ce8dc67e74bb87e903' // wiki.php.net