From 505292eb41cf82cac449d15dd592d109e25d3c8f Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Fri, 16 Nov 2007 17:31:16 +0000 Subject: Backpatch: Fix tsvector_out() and tsquery_out() to escape backslesh, add test of that. Patch by Bruce Momjian --- contrib/tsearch2/query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/tsearch2/query.c') diff --git a/contrib/tsearch2/query.c b/contrib/tsearch2/query.c index 9c4ed370a6b..95bce54fc4f 100644 --- a/contrib/tsearch2/query.c +++ b/contrib/tsearch2/query.c @@ -680,7 +680,7 @@ infix(INFIX * in, bool first) in->cur++; while (*op) { - if (*op == '\'') + if (*op == '\'' || *op == '\\') { *(in->cur) = '\\'; in->cur++; -- cgit v1.2.3