Sort out paired double quotes in \connect, \password and \crosstabview.
authorNoah Misch <[email protected]>
Mon, 8 Aug 2016 14:07:46 +0000 (10:07 -0400)
committerNoah Misch <[email protected]>
Mon, 8 Aug 2016 14:07:52 +0000 (10:07 -0400)
commit0cc3b12d284fb0e693abfd24e3950a19d3478380
treeaa8788fec4f28f5e11034b5e5a8440f3f52e1dc7
parent22f9b3dd3d92fa3f8f250c3cca468e6c27ca2b34
Sort out paired double quotes in \connect, \password and \crosstabview.

In arguments, these meta-commands wrongly treated each pair as closing
the double quoted string.  Make the behavior match the documentation.
This is a compatibility break, but I more expect to find software with
untested reliance on the documented behavior than software reliant on
today's behavior.  Back-patch to 9.1 (all supported versions).

Reviewed by Tom Lane and Peter Eisentraut.

Security: CVE-2016-5424
src/bin/psql/psqlscan.l