This fix is for the problem Matthew Hagerty reported. (PHP appearing to execute code...
authortassium <tassium@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 13 Dec 2002 20:21:06 +0000 (20:21 +0000)
committertassium <tassium@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 13 Dec 2002 20:21:06 +0000 (20:21 +0000)
I didn't hear back from Mr. Hagerty, so I'll assume the fix worked for him.
(It worked for me)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4269 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/squirrelspell/modules/check_me.mod

index 41cfd15..06ffe25 100644 (file)
@@ -191,12 +191,16 @@ for ($i=0; $i<sizeof($sqspell_output); $i++){
      */
     if (!$SQSPELL_EREG("\n$sqspell_word\n", $words)){
       $sqspell_symb=intval($tmparray[2])-1;
-      if (!$misses[$sqspell_word]) {
-       $misses[$sqspell_word] = '_NONE';
-       $missed_words[$errors] = $sqspell_word;
-       $errors++;
+      if (!isset($misses[$sqspell_word])) {
+           $misses[$sqspell_word] = '_NONE';
+           $missed_words[$errors] = $sqspell_word;
+           $errors++;
       }
-      if ($locations[$sqspell_word]) $locations[$sqspell_word] .= ', ';
+      if (isset($locations[$sqspell_word])) {
+           $locations[$sqspell_word] .= ', ';
+      } else {
+           $locations[$sqspell_word] = '';
+         }
       $locations[$sqspell_word] .= "$current_line:$sqspell_symb";
     }
   break;