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

Escape Message-ID during update binaries #1148

Merged
merged 1 commit into from
Jan 11, 2021

Conversation

egyptianbman
Copy link
Contributor

I ran misc/update/update_binaries.php manually because I noticed a lot
of missing parts that weren't going away and noticed sql errors on the
INSERT IGNORE. It turns out that some of the message IDs had single
quotes in them that inhibited the query from executing properly.

An example I found is: 200420092300004385%But-i-really@dont'care.com
(oddly enough, the single quote isn't in the word don't, but after...)

semi-sanitizing the data through the addslashes function takes care of
the problem -- I'm not aware if there's a more elegant method of
sanitizing that is available. Please let me know if there is and I'll
update.

I ran misc/update/update_binaries.php manually because I noticed a lot
of missing parts that weren't going away and noticed sql errors on the
INSERT IGNORE. It turns out that some of the message IDs had single
quotes in them that inhibited the query from executing properly.

An example I found is: 200420092300004385%But-i-really@dont'care.com
(oddly enough, the single quote isn't in the word don't, but after...)

semi-sanitizing the data through the `addslashes` function takes care of
the problem -- I'm not aware if there's a more elegant method of
sanitizing that is available. Please let me know if there is and I'll
update.
@egyptianbman
Copy link
Contributor Author

Regarding the failing test, I can't find any reference to Jack Fairweather, Salvatore Scibona or The Volunteer. I'm not sure where the data for the test is coming from. Can you provide any insight there? Thanks.

@DariusIII
Copy link
Member

DariusIII commented Jan 11, 2021

Those come from book testing. It's using itunes api, which is incoherent and changes data from time to time. That is why the test failed.

@DariusIII DariusIII merged commit 893d439 into NNTmux:master Jan 11, 2021
@egyptianbman egyptianbman deleted the escape-message-id branch February 2, 2021 00:12
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