Commit 7bd5ce1
fix: escape gpx xml (#1186)
* Escapes XML in GPX route data
Ensures route names and descriptions are properly escaped
when generating GPX files, preventing potential XML parsing issues.
Sanitizes the filename to be downloaded.
* Prettier
* fix: filename sanitizer to also strip backslashes for Windows safety
---------
Co-authored-by: Mygod <[email protected]>1 parent 5c907c5 commit 7bd5ce1
1 file changed
+21
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
391 | 409 | | |
392 | 410 | | |
393 | 411 | | |
| |||
396 | 414 | | |
397 | 415 | | |
398 | 416 | | |
399 | | - | |
400 | | - | |
| 417 | + | |
| 418 | + | |
401 | 419 | | |
402 | 420 | | |
403 | 421 | | |
| |||
417 | 435 | | |
418 | 436 | | |
419 | 437 | | |
420 | | - | |
| 438 | + | |
421 | 439 | | |
422 | 440 | | |
423 | 441 | | |
| |||
0 commit comments