diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2008-03-08 17:24:02 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2008-03-08 17:24:02 +0000 |
commit | bda4463b94aca19bdd31e527c8b348f8fa3c7657 (patch) | |
tree | 9c45355b43c32e36d31729a665c79836ec10ccb8 /pcrecpp_unittest.cc | |
parent | 2d6ec30227035d99946e622ed3ea3b4c26d415b3 (diff) | |
download | pcre-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.cc | 1 |
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() { |