LWN.net Logo

pygresql: missing escape function

Package(s):pygresql CVE #(s):CVE-2009-2940
Created:October 15, 2009 Updated:December 11, 2009
Description: From the Debian advisory: It was discovered that pygresql, a PostgreSQL module for Python, was missing a function to call PQescapeStringConn(). This is needed, because PQescapeStringConn() honours the charset of the connection and prevents insufficient escaping, when certain multibyte character encodings are used. The new function is called pg_escape_string(), which takes the database connection as a first argument. The old function escape_string() has been preserved as well for backwards compatibility.
Alerts:
Ubuntu USN-870-1 2009-12-11
Debian DSA-1911-1 2009-10-14

(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds