Merge commit 'origin/master' into fusionax
[platal.git] / plugins / function.poison.php
index 6f5e12b..0d012fc 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2008 Polytechnique.org                              *
+ *  Copyright (C) 2003-2009 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -25,11 +25,11 @@ function smarty_function_poison($params, &$smarty) {
     Platal::load('poison', 'poison.inc.php');
 
     $emails = get_poison_emails($seed, $count);
-    $str = "";
+    $str = "<textarea>";
     foreach ($emails as $email) {
         $str .= "<a href=\"mailto:$email\">$email</a> ";
     }
-    return $str;
+    return $str . '</textarea>';
 }
 
 // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: