]> source.dussan.org Git - jquery.git/commit
Tests: Strip untypical callback parameter characters from mock.php
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Tue, 13 Apr 2021 20:13:48 +0000 (22:13 +0200)
committerGitHub <noreply@github.com>
Tue, 13 Apr 2021 20:13:48 +0000 (22:13 +0200)
commita70274632dc19ff4a64d7bb7657a2cc647ff38b9
tree270614d4b47cdb80eb08db92dd556ff17bb6e1cc
parent50e8e84621ff7a314fca253ce73f0519322d8a4d
Tests: Strip untypical callback parameter characters from mock.php

Only allow alphanumeric characters & underscores for callback parameters.
The change is done both for the PHP server as well as the Node.js-based version.
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.

Ref gh-4764
Closes gh-4871
test/data/mock.php
test/middleware-mockserver.js