moving functions to separate file, adding configuration files
[squirrelmail.git] / plugins / squirrelspell / modules / forget_me.mod
index 59471e38dc3faf36f9a6483fa56d5d4633a537f9..129c3af9aa4ace4f74514ecd0d0748e37970baf7 100644 (file)
@@ -4,7 +4,7 @@
  * --------------
  * Squirrelspell module
  *
- * Copyright (c) 1999-2002 The SquirrelMail development team
+ * Copyright (c) 1999-2003 The SquirrelMail development team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * This module deletes the words from the user dictionary. Called
@@ -29,7 +29,7 @@ if (sizeof($words_ary)){
   $words=sqspell_getWords();
   $lang_words = sqspell_getLang($words, $sqspell_use_app);
   $msg = '<p>'
-     . sprintf(_("Deleting the following entries from <strong>%s</strong> dictionary:"), $sqspell_use_app)
+     . sprintf(_("Deleting the following entries from %s dictionary:"), '<strong>'.$sqspell_use_app.'</strong>')
      . '</p>'
      . "<ul>\n";
   for ($i=0; $i<sizeof($words_ary); $i++){
@@ -37,7 +37,7 @@ if (sizeof($words_ary)){
      * Remove word by word...
      */
     $lang_words=str_replace("$words_ary[$i]\n", "", $lang_words);
-    $msg .= "<li>$words_ary[$i]</li>\n";
+    $msg .= '<li>' . htmlspecialchars($words_ary[$i]) . "</li>\n";
   }
   $new_words_ary=split("\n", $lang_words);
   /**
@@ -87,5 +87,6 @@ if (sizeof($words_ary)){
  * Local variables:
  * mode: php
  * End:
+ * vim: syntax=php
  */    
 ?>