From c9113faee50f8e6e34fe618e904acd388c35e4c0 Mon Sep 17 00:00:00 2001 From: benmcmahon100 Date: Tue, 25 Aug 2015 21:07:36 +0100 Subject: [PATCH] added error to the $($) blocker --- public/js/lib/coursewares/commonFrameWork.js | 6 ++++++ 1 file changed, 6 insertions(+) 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 $($)"); + } } }