Browse Source

empêche les malins

master
vince vince 1 year ago
parent
commit
332b6d5ec3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      index.php

+ 1
- 1
index.php View File

@ -274,7 +274,7 @@ if (!$isConfig and !$supplierIsNew and $hasSupplier) {
foreach (['name', 'choice', 'action'] as $field)
$item[$field] = filter_var($_REQUEST[$field], FILTER_SANITIZE_STRING);
$item['timestamp'] = time();
$hash = md5(implode([ $item['name'], $item['choice'], ]));
$hash = md5(implode([ trim($item['name']), $item['choice'], ]));
$item['hash'] = $hash;
$isBeginning = (!file_exists(DATA_FILE) or in_array(filesize(DATA_FILE), [ false, 0 ]));


Loading…
Cancel
Save