Aleksander Machniak
2016-01-08 fc5befff0f1aec5f9529a1892dd274350ab0f9e6
Fix missing language name in "Add to Dictionary" request in HTML mode (#1490634)

Conflicts:

CHANGELOG
2 files modified
6 ■■■■■ changed files
CHANGELOG 3 ●●●●● patch | view | raw | blame | history
program/js/editor.js 3 ●●●●● patch | view | raw | blame | history
CHANGELOG
@@ -1,6 +1,9 @@
CHANGELOG Roundcube Webmail
===========================
- Fix missing language name in "Add to Dictionary" request in HTML mode (#1490634)
RELEASE 1.1.4
-------------
- Add workaround for https://bugs.php.net/bug.php?id=70757 (#1490582)
program/js/editor.js
@@ -71,6 +71,9 @@
    tinymce.registered_request_token = true;
    tinymce.util.XHR.on('beforeSend', function(e) {
      e.xhr.setRequestHeader('X-Roundcube-Request', rcmail.env.request_token);
      // Fix missing lang parameter on addToDictionary request (#1490634)
      if (e.settings && e.settings.data && /^method=addToDictionary/.test(e.settings.data) && !/&lang=/.test(e.settings.data))
        e.settings.data += '&lang=' + ref.editor.plugins.spellchecker.getLanguage();
    });
  }