From ab2a74a934e0d1ee37f0dbdc03dbbbe4b4d865e7 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Sun, 26 Mar 2017 13:30:07 +0200 Subject: [PATCH 1/2] Use eval directly We've overwritten jQuery.globalEval() for security reasons in Nextcloud, to make this now compatible again I've changed this code to manually call eval. Ref https://github.com/nextcloud/server/issues/4067 Signed-off-by: Lukas Reschke --- jquery.strengthify.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.strengthify.js b/jquery.strengthify.js index adf60f9..be5f1f9 100644 --- a/jquery.strengthify.js +++ b/jquery.strengthify.js @@ -199,9 +199,9 @@ $.ajax({ cache: true, - dataType: 'script', url: options.zxcvbn - }).done(function() { + }).done(function(content) { + eval(content); $elem.bind('keyup input change', drawSelf); }); }; From 107769821bb5fd158e7d57629bd389184790db30 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Sun, 26 Mar 2017 13:31:58 +0200 Subject: [PATCH 2/2] Increase version to 0.5.2 Signed-off-by: Lukas Reschke --- bower.json | 2 +- jquery.strengthify.js | 2 +- strengthify.css | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bower.json b/bower.json index bd3f9b0..a993c9a 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "strengthify", - "version": "0.5.1", + "version": "0.5.2", "homepage": "https://github.com/MorrisJobke/strengthify", "authors": [ "Eve Ragins */