forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit430ce18
committed
libpq: Discard leading and trailing spaces for parameters and values in URIs
Integer values applied a parsing rule through pqParseIntParam() thatmade URIs like this one working, even if these include spaces aroundvalues:"postgresql://localhost:5432/postgres?keepalives=1 &keepalives_idle=1 "This commit changes the parsing so as spaces before and after parametersand values are discarded, offering more consistency with the parsingthat already applied to libpq for integer values in URIs.Note that %20 can be used in a URI for a space character. ECPGconnect()has been discarded leading and trailing spaces around parameters andvalues that for a long time, as well. Likef22e84d, this is doneas a HEAD-only change.Reviewed-by: Yuto SasakiDiscussion:https://postgr.es/m/Zv3oWOfcrHTph7JK@paquier.xyz1 parent68dfecb commit430ce18
2 files changed
+54
-6
lines changedLines changed: 36 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6763 | 6763 |
| |
6764 | 6764 |
| |
6765 | 6765 |
| |
6766 |
| - | |
6767 |
| - | |
6768 |
| - | |
| 6766 | + | |
| 6767 | + | |
| 6768 | + | |
6769 | 6769 |
| |
6770 | 6770 |
| |
6771 | 6771 |
| |
| |||
6775 | 6775 |
| |
6776 | 6776 |
| |
6777 | 6777 |
| |
| 6778 | + | |
| 6779 | + | |
| 6780 | + | |
| 6781 | + | |
| 6782 | + | |
| 6783 | + | |
| 6784 | + | |
6778 | 6785 |
| |
6779 | 6786 |
| |
6780 | 6787 |
| |
6781 | 6788 |
| |
6782 |
| - | |
6783 |
| - | |
6784 |
| - | |
| 6789 | + | |
| 6790 | + | |
| 6791 | + | |
| 6792 | + | |
| 6793 | + | |
| 6794 | + | |
6785 | 6795 |
| |
6786 | 6796 |
| |
6787 | 6797 |
| |
| |||
6817 | 6827 |
| |
6818 | 6828 |
| |
6819 | 6829 |
| |
| 6830 | + | |
| 6831 | + | |
| 6832 | + | |
| 6833 | + | |
| 6834 | + | |
| 6835 | + | |
| 6836 | + | |
| 6837 | + | |
| 6838 | + | |
| 6839 | + | |
| 6840 | + | |
| 6841 | + | |
| 6842 | + | |
| 6843 | + | |
| 6844 | + | |
| 6845 | + | |
| 6846 | + | |
| 6847 | + | |
| 6848 | + | |
| 6849 | + | |
6820 | 6850 |
| |
6821 | 6851 |
| |
6822 | 6852 |
| |
|
Lines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
86 | 86 |
| |
87 | 87 |
| |
88 | 88 |
| |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
89 | 107 |
| |
90 | 108 |
| |
91 | 109 |
| |
|
0 commit comments
Comments
(0)