Skip to content

Commit

Permalink
Merge pull request #66 from jacekbogdanski/cloud-protocol
Browse files Browse the repository at this point in the history
Updated cloud protocol service to always use https
  • Loading branch information
jalners authored Aug 10, 2021
2 parents 1ae1151 + fa43fa6 commit 4ba7a5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dialogs/wsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1848,8 +1848,7 @@ CKEDITOR.dialog.add('checkspell', function(editor) {
NS.cust_dic_ids = editor.config.wsc_customDictionaryIds;
NS.userDictionaryName = editor.config.wsc_userDictionaryName;
NS.defaultLanguage = CKEDITOR.config.defaultLanguage;
var protocol = document.location.protocol == "file:" ? "http:" : document.location.protocol;
var wscCoreUrl = editor.config.wsc_customLoaderScript || ( protocol + '//www.webspellchecker.net/spellcheck31/lf/22/js/wsc_fck2plugin.js');
var wscCoreUrl = editor.config.wsc_customLoaderScript || 'https://www.webspellchecker.net/spellcheck31/lf/22/js/wsc_fck2plugin.js';
} else {
NS.dialog.hide();
return;
Expand Down
3 changes: 1 addition & 2 deletions dialogs/wsc_ie.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ CKEDITOR.dialog.add( 'checkspell', function( editor ) {
textareaId = 'cke_data_' + number,
errorBoxId = 'cke_error_' + number,
interval,
protocol = document.location.protocol || 'http:',
errorMsg = editor.lang.wsc.notAvailable;

var pasteArea =
Expand All @@ -30,7 +29,7 @@ CKEDITOR.dialog.add( 'checkspell', function( editor ) {
' allowtransparency="1">' +
'</iframe>';

var wscCoreUrl = editor.config.wsc_customLoaderScript || ( protocol + '//loader.webspellchecker.net/sproxy_fck/sproxy.php' + '?plugin=fck2'
var wscCoreUrl = editor.config.wsc_customLoaderScript || ( 'https://loader.webspellchecker.net/sproxy_fck/sproxy.php' + '?plugin=fck2'
+ '&customerid=' + editor.config.wsc_customerId
+ '&cmd=script&doc=wsc&schema=22'
);
Expand Down

0 comments on commit 4ba7a5f

Please sign in to comment.