Skip to content

Commit

Permalink
Merge pull request from GHSA-65mj-7c86-79jf
Browse files Browse the repository at this point in the history
CVE-2021-3850: Prevent auth bypass with PostgreSQL connections (5.20 branch)
  • Loading branch information
dregad authored Jan 22, 2022
2 parents 66fb9e5 + 952de6c commit 6d02431
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/adodb-postgres64.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ function adodb_addslashes($s)
{
$len = strlen($s);
if ($len == 0) return "''";
if (strncmp($s,"'",1) === 0 && substr($s,$len-1) == "'") return $s; // already quoted

return "'".addslashes($s)."'";
}
Expand Down

0 comments on commit 6d02431

Please sign in to comment.