Happy New Year
[squirrelmail.git] / plugins / squirrelspell / modules / edit_dic.mod
index 2104e201102b817af2bd0d0758d3a1fa862641b9..ed9fa534f0be13e294de3d4859b923644b512a7e 100644 (file)
@@ -8,7 +8,7 @@
  * This module lets the user edit his/her personal dictionary.
  *
  * @author Konstantin Riabitsev <icon at duke.edu>
- * @copyright &copy; 1999-2006 The SquirrelMail Project Team
+ * @copyright 1999-2018 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
@@ -61,8 +61,9 @@ foreach ($langs as $lang) {
         $msg .= "</td><td valign=\"top\">\n";
       }
       $msg .= "<input type=\"checkbox\" name=\"words_ary[]\" "
-        . 'value="'.htmlspecialchars($lang_words[$j]). '" /> '
-        . htmlspecialchars($lang_words[$j]) . "<br />\n";
+        . 'value="'.sm_encode_html_special_chars($lang_words[$j]). '" id="words_ary_'
+        . $j . '" /> <label for="words_ary_' . $j .'">'
+        . sm_encode_html_special_chars($lang_words[$j]) . "</label><br />\n";
     }
     $msg .= '</td></tr></table></td></tr>'
       . "<tr bgcolor=\"$color[0]\" align=\"center\"><td>"
@@ -89,5 +90,3 @@ sqspell_makePage(_("Edit your Personal Dictionary"), null, $msg);
  * End:
  * vim: syntax=php
  */
-
-?>
\ No newline at end of file