Skip to content

Commit

Permalink
Merge pull request #6523 from WinterSolstice8/fix_changing_passwords
Browse files Browse the repository at this point in the history
[core] Adjust db::escapeString to emulate strlen
  • Loading branch information
zach2good authored Dec 13, 2024
2 parents 834acf2 + e70cd59 commit 18b6b24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ auto db::escapeString(std::string const& str) -> std::string
{
char c = str[i];

// Emulate SqlConnection::EscapeString using strlen
if (c == '\0')
break;

auto it = replacements.find(c);
if (it != replacements.end())
{
Expand Down

0 comments on commit 18b6b24

Please sign in to comment.