Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jQuery.globalEval()={} - Problem with password strength and files_markdown #4067

Closed
michaelletzgus opened this issue Mar 26, 2017 · 3 comments · Fixed by #4083
Closed

jQuery.globalEval()={} - Problem with password strength and files_markdown #4067

michaelletzgus opened this issue Mar 26, 2017 · 3 comments · Fixed by #4083
Assignees
Labels

Comments

@michaelletzgus
Copy link
Contributor

michaelletzgus commented Mar 26, 2017

Current master, personal settings, type a password into the "new password field"

Expected: Show password strength

Actual:
ReferenceError: zxcvbn is not defined in jquery.strengthify.js

Reason:
The script loading and executing of /core/vendor/zxcvbn/dist/zxcvbn.js at the bottom of /core/vendor/strengthify/jquery.strengthify.js is rendered dysfunctional by 148e7ab due to

$.ajaxSetup({
		contents: {
			script: false
		}
	});
jQuery.globalEval = function(){};

in core/js/js.js which is needed by jQuery ajax()/getScript() to execute loaded script.

148e7ab also brakes files_markdown (see #3696 (comment))

@LukasReschke LukasReschke added this to the Nextcloud 12.0 milestone Mar 26, 2017
@LukasReschke LukasReschke self-assigned this Mar 26, 2017
LukasReschke added a commit to LukasReschke/strengthify that referenced this issue Mar 26, 2017
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 <lukas@statuscode.ch>
@LukasReschke
Copy link
Member

Patch for jquery.strengthify.js: nextcloud/strengthify#14

@LukasReschke
Copy link
Member

cc @MorrisJobke

LukasReschke added a commit that referenced this issue Mar 26, 2017
Fixes #4067

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
LukasReschke added a commit that referenced this issue Mar 26, 2017
Fixes #4067

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
@LukasReschke
Copy link
Member

And for the files_markdown app: #4068

MorrisJobke pushed a commit to nextcloud/strengthify that referenced this issue Mar 26, 2017
* 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 <lukas@statuscode.ch>

* Increase version to 0.5.2

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants