Fix sqlify for multiline contents.

This commit is contained in:
Bastian Kleineidam 2011-10-18 14:40:33 +02:00
parent a2978209e6
commit 91dce84c59
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ Fixes:
some sites.
Closes: SF bug #3388291
- logging: Fix SQL output.
Closes: SF bug #3415274
Closes: SF bug #3415274, #3422230
- checking: Fix W3C HTML checking by using the new soap12 output.
Closes: SF bug #3413022
- gui: Fix startup when configuration file contains errors.

View file

@ -29,7 +29,7 @@ def sqlify (s):
"""
if not s:
return "NULL"
return "'%s'" % s.replace("'", "''")
return "'%s'" % s.replace("'", "''").replace(os.linesep, r"\n")
def intify (s):