Skip to content

Conversation

MRmlik12
Copy link

@MRmlik12 MRmlik12 commented Jan 26, 2024

When I'm trying to insert a string with quotes or apostrophes like this <b>Invariant in Hoare's method</b> the SQL insert query crashes on these. So I wrote an HTML sanitizer to fix SQL query to be executed correctly and keep the original message format

@jonnydee
Copy link

I also fixed this issue in #3.

However, the fix I implemented uses SQL parameters which makes sanitizing the values inserted into the database obsolete and is the recommended approach anyway.

@somegenericdev
Copy link

somegenericdev commented Mar 2, 2025

Since the maintainers don't seem to be very active at the moment I've uploaded a package containing @MRmlik12 's fix to NuGet Gallery for ease of use.

This way anyone looking for a quick way to script something with Anki.NET can get up and running easily without having to pull an entire project into their solution.

https://www.nuget.org/packages/SomeGenericDev.Anki.NET/2.0.1

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.

3 participants