Uses Post dedicated trim function when possible.
authorStéphane Jacob <sj@m4x.org>
Sun, 9 Jan 2011 01:21:46 +0000 (02:21 +0100)
committerStéphane Jacob <sj@m4x.org>
Sun, 9 Jan 2011 10:17:48 +0000 (11:17 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
include/validations/listes.inc.php

index b946894..4be1f5e 100644 (file)
@@ -82,13 +82,13 @@ class ListeReq extends Validate
         global $globals;
 
         if (Env::has('listname')) {
-            $this->liste = trim(Env::v('listname'));
+            $this->liste = Post::t('listname');
         }
         if (Env::has('domainname')) {
-            $this->domain = trim(Env::v('domainname'));
+            $this->domain = Post::t('domainname');
         }
         if (Env::has('assotype')) {
-            $this->asso = trim(Env::v('assotype'));
+            $this->asso = Post::t('assotype');
         }
         if (!$this->asso) {
             $this->domain = $globals->mail->domain;