Skip to content

Conversation

@mgol
Copy link
Member

@mgol mgol commented Apr 16, 2021

Summary

Only allow alphanumeric characters & underscores for callback parameters.
This is only test code so we're not fixing any security issue but it happens
often enough that the whole jQuery repository directory structure is deployed
onto the server with PHP enabled that it makes is easy to introduce security
issues if this cleanup is not done.

This is a 1.x/2.x version of PR gh-4871.

The change doesn't require a release; it's meant at installations testing
the latest state of 1.12-stable & 2.2-stable branches.

This change also fixes testing on Travis & on Chrome/Firefox.

Ref gh-4764
Ref gh-4871

Checklist

Only allow alphanumeric characters & underscores for callback parameters.
This is only test code so we're not fixing any security issue but it happens
often enough that the whole jQuery repository directory structure is deployed
onto the server with PHP enabled that it makes is easy to introduce security
issues if this cleanup is not done.

This is a 1.x/2.x version of PR jquerygh-4871.

The change doesn't require a release; it's meant at installations testing
the latest state of `1.12-stable` & `2.2-stable` branches.

This change also fixes testing on Travis & on Chrome/Firefox.

Ref jquerygh-4764
Ref jquerygh-4871
@mgol mgol force-pushed the php-callback-normalization branch from cc8bbd3 to c102808 Compare April 16, 2021 21:53
Copy link
Member

@Krinkle Krinkle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Confirmed all code matches the original PR, or the state of main for the iframe test and support changes (eg. cc95204).

@mgol
Copy link
Member Author

mgol commented Apr 28, 2021

@timmywil If you have no comments, I'd like to merge it within the next few days.

Copy link
Member

@timmywil timmywil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mgol mgol merged commit acb7c49 into jquery:2.2-stable Apr 29, 2021
@mgol mgol deleted the php-callback-normalization branch April 29, 2021 16:28
@mgol mgol removed the Needs review label Apr 29, 2021
mgol added a commit to mgol/jquery that referenced this pull request Apr 29, 2021
Only allow alphanumeric characters & underscores for callback parameters.
This is only test code so we're not fixing any security issue but it happens
often enough that the whole jQuery repository directory structure is deployed
onto the server with PHP enabled that it makes is easy to introduce security
issues if this cleanup is not done.

This is a 1.x/2.x version of PR jquerygh-4871.

The change doesn't require a release; it's meant at installations testing
the latest state of `1.12-stable` & `2.2-stable` branches.

This change also fixes testing on Travis & on Chrome/Firefox.

Closes jquerygh-4875
Ref jquerygh-4764
Ref jquerygh-4871

(cherry picked from acb7c49)
@mgol
Copy link
Member Author

mgol commented Apr 29, 2021

Landed on 2.2-stable in acb7c49 & on 1.12-stable in 90a3c43.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Development

Successfully merging this pull request may close these issues.

3 participants