-
Notifications
You must be signed in to change notification settings - Fork 38
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
[JENKINS-73958] remove eval call from js #269
Conversation
@@ -74,8 +74,10 @@ Behaviour.specify(".specific-user-authorization", "checkPasswordRequired", 0, fu | |||
|
|||
var onchange = function(evt) { | |||
var url = useridField.getAttribute("checkPasswordRequestedUrl"); | |||
url = eval(url); | |||
fetch(url, { | |||
var params = new URLSearchParams({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A while back we had problems with URLSearchParams
not working in HtmlUnit, so I would feel more comfortable with a PCT run to make sure this won't cause unnecessary hassle in test coverage. An ATH run wouldn't hurt too, but I won't insist on it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
jenkinsci/authorize-project-plugin#269 fixes a content security policy problem in the plugin. Let's be sure that the change does not harm any tests in the plugin BOM.
jenkinsci/authorize-project-plugin#269 is the pull request.
Testing done
manual testing
Submitter checklist