diff --git a/public/js/lib/coursewares/commonFrameWork.js b/public/js/lib/coursewares/commonFrameWork.js index 0ef7987724..78ac7f0bfa 100644 --- a/public/js/lib/coursewares/commonFrameWork.js +++ b/public/js/lib/coursewares/commonFrameWork.js @@ -246,6 +246,9 @@ if(typeof prodOrDev !== 'undefined') { if(!editor.getValue().match(/\$\s*?\(\s*?\$\s*?\)/gi)){ safeHTMLRun(false); } + else{ + workerError("Unsafe $($)"); + } } setTimeout(updatePreview, 300); @@ -523,6 +526,9 @@ function bonfireExecute() { if(!editor.getValue().match(/\$\s*?\(\s*?\$\s*?\)/gi) && challengeType === "0") { safeHTMLRun(true); } + else{ + workerError("Unsafe $($)"); + } } }