- Notifications
You must be signed in to change notification settings - Fork20.6k
Commita702746
authored
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 happensoften enough that the whole jQuery repository directory structure is deployedonto the server with PHP enabled that it makes is easy to introduce securityissues if this cleanup is not done.Refgh-4764Closesgh-48711 parent50e8e84 commita702746
2 files changed
+24
-13
lines changedLines changed: 14 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
| 2 | + | |
2 | 3 |
| |
3 | 4 |
| |
4 | 5 |
| |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 |
| |
6 | 11 |
| |
7 | 12 |
| |
| |||
65 | 70 |
| |
66 | 71 |
| |
67 | 72 |
| |
68 |
| - | |
| 73 | + | |
| 74 | + | |
69 | 75 |
| |
70 | 76 |
| |
71 | 77 |
| |
| |||
105 | 111 |
| |
106 | 112 |
| |
107 | 113 |
| |
108 |
| - | |
109 |
| - | |
110 |
| - | |
111 |
| - | |
112 |
| - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
113 | 118 |
| |
114 | 119 |
| |
115 | 120 |
| |
116 | 121 |
| |
| 122 | + | |
117 | 123 |
| |
118 |
| - | |
| 124 | + | |
119 | 125 |
| |
120 | 126 |
| |
121 | 127 |
| |
| |||
243 | 249 |
| |
244 | 250 |
| |
245 | 251 |
| |
246 |
| - | |
| 252 | + | |
247 | 253 |
| |
248 | 254 |
| |
249 | 255 |
| |
|
Lines changed: 10 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 |
| |
11 | 15 |
| |
12 | 16 |
| |
| |||
73 | 77 |
| |
74 | 78 |
| |
75 | 79 |
| |
76 |
| - | |
| 80 | + | |
77 | 81 |
| |
78 | 82 |
| |
79 | 83 |
| |
| |||
126 | 130 |
| |
127 | 131 |
| |
128 | 132 |
| |
129 |
| - | |
| 133 | + | |
130 | 134 |
| |
131 | 135 |
| |
132 | 136 |
| |
133 | 137 |
| |
134 | 138 |
| |
135 | 139 |
| |
136 |
| - | |
| 140 | + | |
137 | 141 |
| |
138 | 142 |
| |
139 | 143 |
| |
| |||
256 | 260 |
| |
257 | 261 |
| |
258 | 262 |
| |
259 |
| - | |
| 263 | + | |
260 | 264 |
| |
261 | 265 |
| |
262 |
| - | |
| 266 | + | |
| 267 | + | |
263 | 268 |
| |
264 | 269 |
| |
265 | 270 |
| |
|
0 commit comments
Comments
(0)