// ajout d'un commentaire
if (Env::has('hold') && Env::has('comm')) {
- $this->comments[] = Array(S::v('bestalias'), Env::v('comm'));
+ $formid = Env::i('formid');
+ foreach ($this->comments as $comment) {
+ if ($comment[2] === $formid) {
+ return true;
+ }
+ }
+ $this->comments[] = Array(S::v('bestalias'), Env::v('comm'), $formid);
// envoi d'un mail à hotliners
global $globals;
<input type="hidden" name="uid" value="{$valid->uid}" />
<input type="hidden" name="type" value="{$valid->type}" />
<input type="hidden" name="stamp" value="{$valid->stamp}" />
+ <input type="hidden" name="formid" value="{0|rand:65535}" />
<textarea rows="3" cols="50" name="comm"></textarea>
<br />
<input type="submit" name="hold" value="Commenter" />