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

Odd character "/" gets inserted when sender name has an apostrophe #21

Open
timplaysguitar opened this issue Nov 3, 2020 · 1 comment

Comments

@timplaysguitar
Copy link

Setting the sender name (the one that overrides "Wordpress" as the sender, if I include an apostrophe in there, eg I set that name to "Jim O'Connell" when I hit save this becomes "Jim O'Connell" and the random "" appears in the sender name.

@Varbaek
Copy link

Varbaek commented Apr 13, 2021

I think this is actually the \ backslash character you are referring to, which will be inserted on strings that contain the apos / single quote for example to avoid syntax issues. To avoid this, the code should be using prepared statements instead of mysql_real_escape_string or addslashes.
https://www.php.net/manual/en/function.mysql-real-escape-string.php
https://www.php.net/manual/en/function.addslashes.php

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

2 participants