Skip to content

Commit 4ba7a5f

Browse files
authored
Merge pull request #66 from jacekbogdanski/cloud-protocol
Updated cloud protocol service to always use https
2 parents 1ae1151 + fa43fa6 commit 4ba7a5f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

dialogs/wsc.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1848,8 +1848,7 @@ CKEDITOR.dialog.add('checkspell', function(editor) {
18481848
NS.cust_dic_ids = editor.config.wsc_customDictionaryIds;
18491849
NS.userDictionaryName = editor.config.wsc_userDictionaryName;
18501850
NS.defaultLanguage = CKEDITOR.config.defaultLanguage;
1851-
var protocol = document.location.protocol == "file:" ? "http:" : document.location.protocol;
1852-
var wscCoreUrl = editor.config.wsc_customLoaderScript || ( protocol + '//www.webspellchecker.net/spellcheck31/lf/22/js/wsc_fck2plugin.js');
1851+
var wscCoreUrl = editor.config.wsc_customLoaderScript || 'https://www.webspellchecker.net/spellcheck31/lf/22/js/wsc_fck2plugin.js';
18531852
} else {
18541853
NS.dialog.hide();
18551854
return;

dialogs/wsc_ie.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ CKEDITOR.dialog.add( 'checkspell', function( editor ) {
99
textareaId = 'cke_data_' + number,
1010
errorBoxId = 'cke_error_' + number,
1111
interval,
12-
protocol = document.location.protocol || 'http:',
1312
errorMsg = editor.lang.wsc.notAvailable;
1413

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

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

0 commit comments

Comments
 (0)