Skip to content

Commit

Permalink
Use eval directly (#14)
Browse files Browse the repository at this point in the history
* 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 nextcloud/server#4067

Signed-off-by: Lukas Reschke <[email protected]>

* Increase version to 0.5.2

Signed-off-by: Lukas Reschke <[email protected]>
  • Loading branch information
LukasReschke authored and MorrisJobke committed Mar 26, 2017
1 parent 47965bc commit 82d63c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "strengthify",
"version": "0.5.1",
"version": "0.5.2",
"homepage": "https://github.com/MorrisJobke/strengthify",
"authors": [
"Eve Ragins <[email protected]",
Expand Down
6 changes: 3 additions & 3 deletions jquery.strengthify.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Strengthify - show the weakness of a password (uses zxcvbn for this)
* https://github.com/MorrisJobke/strengthify
*
* Version: 0.5.1
* Version: 0.5.2
* Author: Morris Jobke (github.com/MorrisJobke) - original
* Eve Ragins @ Eve Corp (github.com/eve-corp)
*
Expand Down Expand Up @@ -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);
});
};
Expand Down
2 changes: 1 addition & 1 deletion strengthify.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Strengthify - show the weakness of a password (uses zxcvbn for this)
* https://github.com/MorrisJobke/strengthify
* Version: 0.5.1
* Version: 0.5.2
* License: The MIT License (MIT)
* Copyright (c) 2013-2016 Morris Jobke <[email protected]>
*/
Expand Down

0 comments on commit 82d63c3

Please sign in to comment.