Skip to content

Fix for translating messages with quotation marks#69

Open
saamok wants to merge 1 commit into
sayonari:masterfrom
saamok:master
Open

Fix for translating messages with quotation marks#69
saamok wants to merge 1 commit into
sayonari:masterfrom
saamok:master

Conversation

@saamok

@saamok saamok commented Jun 22, 2024

Copy link
Copy Markdown

Messages containing quotation marks (" and possibly ') caused the translation database operations to fail, as the input to the SQL operations was not sanitized. I modified the db.execute calls to use sqlite3 parameter passing that automatically fixes the input so that stray quotation marks don't confuse the SQL interpreter. This should let twitchTransFreeNext properly translate messages that include quotation marks. (I also changed the exception handling for trying to create the table when it already exists to make it clearer where the message comes from, but that is not important for the quotation mark fix)

…ation of messages containing quotation marks. Added exception name to table exists printout to help with diagnostics.
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.

1 participant