Update quote2dollars.py

This commit is contained in:
Mehmet Leblebici 2019-10-07 15:28:29 +03:00 committed by GitHub
parent fccf2274eb
commit 291d20329c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ def tamper(payload, **kwargs):
Notes: useful for applications that use PostgreSQL database and encodes or sanitizes quote characters Notes: useful for applications that use PostgreSQL database and encodes or sanitizes quote characters
>>> tamper("1' or '1'='1") >>> tamper("1' or '1'='1")
"1$$ or $$1$$=$$1" '1$$ or $$1$$=$$1'
""" """
return payload.replace("'", "$$") return payload.replace("'", "$$")