Skip to content
This repository has been archived by the owner on Sep 26, 2020. It is now read-only.

Escape profile keys for MongoDB #38

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

itrack
Copy link

@itrack itrack commented Sep 21, 2020

In some situations the names of the php files are sent to Mongo and mongo returns an error like:
xhgui - invalid document for insert: keys cannot contain ".": "main()==>load::lib/paths_constants.php"

According to the standard https://docs.mongodb.com/manual/reference/limits/#Restrictions-on-Field-Names cannot insert keys that contain dots or $

@itrack itrack changed the title Escape profile keys Escape profile keys for MongoDB Sep 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant