]> granicus.if.org Git - postgresql/commit
Sort out paired double quotes in \connect, \password and \crosstabview.
authorNoah Misch <noah@leadboat.com>
Mon, 8 Aug 2016 14:07:46 +0000 (10:07 -0400)
committerNoah Misch <noah@leadboat.com>
Mon, 8 Aug 2016 14:07:51 +0000 (10:07 -0400)
commitfed83cdac44da06915f9cf5926a282848841f7c1
treeb687c634079c58462bcc92fb09117da6429a0a86
parent682e172a61ae3cb8cd5975733d5777a806aed3d5
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