Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] prevent injection #514

Open
mrmoein opened this issue May 3, 2023 · 0 comments
Open

[Question] prevent injection #514

mrmoein opened this issue May 3, 2023 · 0 comments

Comments

@mrmoein
Copy link

mrmoein commented May 3, 2023

i want prevent injection when read and wirte data

my read query is like this:

var query = $"from(bucket:\"{_bucketName}\") " +
            $"|> {range[0]} " +
            $"|> filter(fn: (r) => r[\"device_id\"] == \"{deviceId}\") " +
            $"|> aggregateWindow(every: {range[1]}, fn: mean, createEmpty: false)" +
            "|> pivot(rowKey:[\"_time\"], columnKey: [\"_field\"], valueColumn: \"_value\")";

user send deviceId to my API

also i use POCO for writing data, should i sanitize my data?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant