summaryrefslogtreecommitdiff
path: root/pcrecpp_unittest.cc
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2008-03-08 17:24:02 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2008-03-08 17:24:02 +0000
commitbda4463b94aca19bdd31e527c8b348f8fa3c7657 (patch)
tree9c45355b43c32e36d31729a665c79836ec10ccb8 /pcrecpp_unittest.cc
parent2d6ec30227035d99946e622ed3ea3b4c26d415b3 (diff)
downloadpcre-bda4463b94aca19bdd31e527c8b348f8fa3c7657.tar.gz
Craig's patch to the QuoteMeta function in pcrecpp.cc so that it escapes the
NUL character as backslash + 0 rather than backslash + NUL, because PCRE doesn't support NULs in patterns. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@326 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcrecpp_unittest.cc')
-rw-r--r--pcrecpp_unittest.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/pcrecpp_unittest.cc b/pcrecpp_unittest.cc
index 2e5f2df..44e0cc9 100644
--- a/pcrecpp_unittest.cc
+++ b/pcrecpp_unittest.cc
@@ -497,6 +497,7 @@ static void TestQuotaMetaSimple() {
TestQuoteMeta("((a|b)c?d*e+[f-h]i)");
TestQuoteMeta("((?!)xxx).*yyy");
TestQuoteMeta("([");
+ TestQuoteMeta(string("foo\0bar", 7));
}
static void TestQuoteMetaSimpleNegative() {