From 48a70b6b476351b14e6c3963c47c77ff02ed7638 Mon Sep 17 00:00:00 2001 From: misol Date: Wed, 10 Oct 2012 03:07:28 +0000 Subject: [PATCH] Issue 1228 , If SSL setting is 'always', set upload_url as request_uri (maybe HTTPS). git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11651 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/editor/tpl/js/uploader.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/editor/tpl/js/uploader.js b/modules/editor/tpl/js/uploader.js index f9482dc55..f1a2d6f78 100755 --- a/modules/editor/tpl/js/uploader.js +++ b/modules/editor/tpl/js/uploader.js @@ -88,6 +88,11 @@ function start(cfg) { uploaderStatusID : cfg.uploaderStatusID }; + if(typeof(enforce_ssl)!=="undefined" && enforce_ssl) + { + settings.upload_url = request_uri+'index.php'; + }; + // preview $('#'+cfg.fileListAreaID).click(previewFiles);