diff options
author | gregs <greg@10gen.com> | 2011-07-26 16:08:49 -0400 |
---|---|---|
committer | gregs <greg@10gen.com> | 2011-07-29 15:07:51 -0400 |
commit | 48d0219905699adfab7019ac951527875869a63c (patch) | |
tree | 632d4be44014ca213de6652b75a50b1ef39de1bc | |
parent | e96a9e7d61c4d48dc4eaae8d77f51eb7df4d7a11 (diff) | |
download | mongo-48d0219905699adfab7019ac951527875869a63c.tar.gz |
escaping for regex - SERVER-3471
-rw-r--r-- | s/config.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/s/config.cpp b/s/config.cpp index 31539de1f24..07667172167 100644 --- a/s/config.cpp +++ b/s/config.cpp @@ -267,7 +267,7 @@ namespace mongo { unserialize( o ); BSONObjBuilder b; - b.appendRegex( "_id" , (string)"^" + _name + "." ); + b.appendRegex( "_id" , (string)"^" + _name + "\\." ); auto_ptr<DBClientCursor> cursor = conn->query( ShardNS::collection ,b.obj() ); assert( cursor.get() ); |