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

fix: query blob param escape #200

Merged
merged 1 commit into from
Jul 30, 2022
Merged

Conversation

gpedro
Copy link
Contributor

@gpedro gpedro commented Jul 27, 2022

if you have a letter/paper with a single quote, that breaks the query. just escaping the item to prevent crashes when copy char.

potential SQL injection,
maybe $db->quote should be better instead addslashes?

Untitled-1
image

@slawkens
Copy link
Owner

slawkens commented Jul 30, 2022

Thanks, thats a good solution.

If it works, we don't need another one ;)

@slawkens slawkens merged commit d99f507 into slawkens:master Jul 30, 2022
@gpedro gpedro deleted the fix/blob-escape branch November 22, 2022 23:36
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

Successfully merging this pull request may close these issues.

2 participants