79520228

Date: 2025-03-19 12:50:20
Score: 2
Natty:
Report link

Simply replacing % with %%, as previously mentioned, did not work for me because I encountered a password authentication failed error.

To resolve this, I encoded the URL first and then replaced %.

Here’s my final code:

_pg_password = quote_plus(os.getenv("DB_PASSWORD", "default")).replace("%", "%%")
Reasons:
  • Blacklisted phrase (1): did not work
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Flávio Farias