59bc9d8989
Summary: This diff fixes the issue for label name (and edge type/property) with spaces and special characters to avoid possible OpenCypher injections. Consider an example where label name is 'hello :world'. `DUMP DATABASE` used to return query which creates a node (u:hello :world) - i.e. node that contains two labels 'hello' and 'world'. This fix escapes names to create the following node with exactly one label as expected: ``` (u:`hello :world`) ``` Reviewers: mferencevic Reviewed By: mferencevic Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D2774 |
||
---|---|---|
.. | ||
tests | ||
runner.py |