-
Committer:
Tarmac
-
Author(s):
Sidnei da Silva
-
Date:
2013-07-31 03:49:00 UTC
-
mfrom:
(1564.1.2 encode-dollar-and-dot)
-
Revision ID:
tarmac-20130731034900-9g4dis9yriehzey3
[r=sidnei],[bug=1205112] Escape dollar and dot in and out of MongoDB
Both dollar sign and dot are not allowed as keys. In fact, dot creates a
sub-document of some sort, which breaks compatibility with pyjuju and causes a
panic (LP:1205112).
The developer manual suggests escaping those with their unicode full width
equivalents:
http://docs.mongodb.org/manual/faq/developers/#faq-dollar-sign-escaping