]> source.dussan.org Git - jquery.git/commit
Tests: Strip untypical callback parameter characters from PHP files 2.2-stable
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Thu, 29 Apr 2021 16:27:58 +0000 (18:27 +0200)
committerGitHub <noreply@github.com>
Thu, 29 Apr 2021 16:27:58 +0000 (18:27 +0200)
commitacb7c49c8d42f601fa347661b1118959079f6b52
tree7eabd86077b9517481b8f3f508a415e753966398
parentb14ce54334a568eaaa107be4c441660a57c3db24
Tests: Strip untypical callback parameter characters from PHP files

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.

Closes gh-4875
Ref gh-4764
Ref gh-4871
.travis.yml
test/data/jsonp.php
test/data/with_fries_over_jsonp.php
test/unit/ajax.js
test/unit/support.js