[Python] 플라스크(Flask) SQL injection 방지


[Python] 플라스크(Flask) SQL injection 방지

SQL injection bobby-tables.com: A guide to preventing SQL injection in {currlang} Python Using the Python DB API , don't do this: # Do NOT do it this way. cmd = "update people set name='%s' where id='%s'" % (name, id) curs.execute(cmd) This builds a SQL string using Python's string formatting, but it creates an unsafe string that is then passed through to the database and execute... bobby-tables.com # 장고는 queryset(ORM)를 통해서 "SQL injection"을 방지할 수 있다. 하지만, 플라스크의 경우 "SQL injection"을 방지하기 위해서는 다른 방...


#flask #injection #python #sql #sqlinjection #sqllite #sql인젝션 #인젝션

원문링크 : [Python] 플라스크(Flask) SQL injection 방지