Commit 90213d4
committed
Fix file path decoding
URLDecoder was being used for path decoding, even though it can't handle
RFC2396 encoding. This resulted in plus characters being removed and
possibly other weirdness.
See https://docs.oracle.com/javase/8/docs/api/java/net/URL.html
"The recommended way to manage the encoding and decoding of URLs is to
use URI, and to convert between these two classes using toURI() and
URI.toURL(). The URLEncoder and URLDecoder classes can also be used, but
only for HTML form encoding, which is not the same as the encoding
scheme defined in RFC2396."
Fixes processing#44171 parent cc44272 commit 90213d4
File tree
2 files changed
+32
-14
lines changed- app/src/processing/app
- core/src/processing/core
2 files changed
+32
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
281 | 283 | | |
282 | 284 | | |
283 | 285 | | |
284 | | - | |
285 | | - | |
286 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
287 | 296 | | |
288 | 297 | | |
289 | 298 | | |
| |||
311 | 320 | | |
312 | 321 | | |
313 | 322 | | |
314 | | - | |
315 | | - | |
| 323 | + | |
316 | 324 | | |
317 | 325 | | |
318 | 326 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7389 | 7389 | | |
7390 | 7390 | | |
7391 | 7391 | | |
7392 | | - | |
7393 | | - | |
7394 | | - | |
7395 | | - | |
| 7392 | + | |
| 7393 | + | |
| 7394 | + | |
| 7395 | + | |
7396 | 7396 | | |
7397 | 7397 | | |
7398 | 7398 | | |
| |||
7543 | 7543 | | |
7544 | 7544 | | |
7545 | 7545 | | |
7546 | | - | |
7547 | | - | |
| 7546 | + | |
| 7547 | + | |
| 7548 | + | |
| 7549 | + | |
| 7550 | + | |
| 7551 | + | |
| 7552 | + | |
| 7553 | + | |
| 7554 | + | |
7548 | 7555 | | |
7549 | | - | |
7550 | | - | |
7551 | | - | |
| 7556 | + | |
7552 | 7557 | | |
7553 | 7558 | | |
7554 | 7559 | | |
| |||
7633 | 7638 | | |
7634 | 7639 | | |
7635 | 7640 | | |
| 7641 | + | |
| 7642 | + | |
| 7643 | + | |
| 7644 | + | |
| 7645 | + | |
7636 | 7646 | | |
7637 | 7647 | | |
7638 | 7648 | | |
| |||
0 commit comments