This commit is contained in:
towards_a_new_leftypol 2020-12-20 23:44:33 -05:00 committed by towards-a-new-leftypol
parent 195a3914d1
commit f75d42d9c4
10 changed files with 242 additions and 186 deletions

View file

@ -185,8 +185,6 @@ class AntiBot {
public function hash() {
global $config;
print_err("compute hash for post page");
// This is the tricky part: create a hash to validate it after
// First, sort the keys in alphabetical order (A-Z)
$inputs = $this->inputs;
@ -195,7 +193,6 @@ class AntiBot {
$hash = '';
// Iterate through each input
foreach ($inputs as $name => $value) {
print_err("<- " . $name . ' : ' . $value);
$hash .= $name . '=' . $value;
}
// Add a salt to the hash