Skip to content

Commit

Permalink
Updated cloud protocol service to always use https.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekbogdanski committed Aug 10, 2021
1 parent 1ae1151 commit fa43fa6
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 fa43fa6

Please sign in to comment.