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

Is there a way to escape {value} in set? #352

Open
mobsense opened this issue Jul 5, 2022 Discussed in #346 · 2 comments
Open

Is there a way to escape {value} in set? #352

mobsense opened this issue Jul 5, 2022 Discussed in #346 · 2 comments
Labels
enhancement New feature or request

Comments

@mobsense
Copy link
Contributor

mobsense commented Jul 5, 2022

Discussed in #346

Originally posted by kujtimiihoxha July 1, 2022
Currently when you do something like

await User.update({id: userId}, {set: {title: 'some user adds a title with {abc}'}})

This will fail... the main reason is that the logic thinks that you have a variable {abc} but I want the logic to treat this as a normal string.

Is there a way to escape {abc} and sanitize the user input?

@mobsense mobsense added the enhancement New feature or request label Jul 5, 2022
@mkraenz
Copy link

mkraenz commented Oct 26, 2022

I've looked quite some time for this issue under the searchword curlies.
For the time being, it seems #346 (comment) provides a workaround.

@mobsense
Copy link
Contributor Author

Can you open a bug issue for this and reference this discussion. It would be good to have a means to escape the {abc}.

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

No branches or pull requests

2 participants