Commit 72f6257
authored
fix: escape special characters in postgres password (coder#16510)
Fixes: coder#16319
This PR modifies existing escaping logic for special characters in
Postgres password, so it does fail on edge cases like `#` or `$` when
parser recognizes as invalid port.1 parent 700a453 commit 72f6257
2 files changed
+18
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2565 | 2565 | | |
2566 | 2566 | | |
2567 | 2567 | | |
| 2568 | + | |
| 2569 | + | |
2568 | 2570 | | |
2569 | 2571 | | |
2570 | 2572 | | |
| |||
2573 | 2575 | | |
2574 | 2576 | | |
2575 | 2577 | | |
2576 | | - | |
| 2578 | + | |
| 2579 | + | |
| 2580 | + | |
| 2581 | + | |
| 2582 | + | |
2577 | 2583 | | |
2578 | 2584 | | |
2579 | 2585 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
354 | 364 | | |
355 | 365 | | |
356 | 366 | | |
357 | 367 | | |
358 | 368 | | |
359 | 369 | | |
360 | | - | |
| 370 | + | |
361 | 371 | | |
362 | 372 | | |
363 | 373 | | |
| |||
0 commit comments