diff --git a/lib/coder.js b/lib/coder.js index 2d4ba29..dd69db3 100644 --- a/lib/coder.js +++ b/lib/coder.js @@ -70,7 +70,7 @@ var ICEcoder = { // Set our layout according to the browser size setLayout: function(dontSetEditor) { - var winW, winH, headerH, footerH, accountH, tabsBarH, findBarH, cM; + var winW, winH, headerH, footerH, accountH, tabsBarH, findBarH; // Determin width & height available winW = window.innerWidth ? window.innerWidth : document.body.clientWidth; @@ -1055,6 +1055,8 @@ var ICEcoder = { if (document.findAndReplace.target.value.indexOf("file")>=0) { targetQS = "&target="+document.findAndReplace.target.value.replace(/ /g,"-"); } + find = find.replace(/\'/g, '''); + find != encodeURIComponent(find) ? find = 'ICEcoder:'+encodeURIComponent(find) : find; top.document.getElementById('mediaContainer').innerHTML = ''; } }