ソースを参照

Fix for SquirrelSpell output issues. Patch courtesy David Boone.

jangliss 21 年 前
コミット
4a7bb07b99
2 ファイル変更2 行追加1 行削除
  1. 1 0
      ChangeLog
  2. 1 1
      plugins/squirrelspell/modules/check_me.mod

+ 1 - 0
ChangeLog

@@ -135,6 +135,7 @@ Version 1.5.1 -- CVS
   - Fixed XSS exploit in decodeHeader function.
   - Added site configuration and custom translation engine support to translate 
     plugin.
+  - Fixed SquirrelSpell error output.  Patch courtesy David Boone.
 
 Version 1.5.0
 --------------------

+ 1 - 1
plugins/squirrelspell/modules/check_me.mod

@@ -120,7 +120,7 @@ if ($sqspell_exitcode){
   $msg= "<div align='center'>"
      . sprintf(_("I tried to execute '%s', but it returned:"),
                $sqspell_command) . "<pre>"
-     . join("\n", htmlspecialchars($sqspell_output)) . "</pre>"
+     . htmlspecialchars(join("\n", $sqspell_output)) . '</pre>'
      . '<form onsubmit="return false">'
      . '<input type="submit" value="  ' . _("Close")
      . '  " onclick="self.close()" /></form></div>';