1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-8032 [PATCH] audit plugin - csv output broken.

Symbols like TAB or NEWLINE should be escaped, which was
        forgotten in one place.
This commit is contained in:
Alexey Botchkov
2015-06-06 19:12:44 +05:00
parent 6264451f25
commit db0ecf2662
3 changed files with 11 additions and 0 deletions

View File

@@ -1118,6 +1118,8 @@ static size_t escape_string(const char *str, unsigned int len,
*(result++)= '\\';
*(result++)= '\\';
}
else if (is_space(*str))
*(result++)= ' ';
else
*(result++)= *str;
str++;