03400c2c6b00ca8310cad7f30ac215d2b80d94b2,debug_toolbar/views.py,,sql_profile,#,85
Before Change
params = request.GET.get("params", "")
hash = sha_constructor(settings.SECRET_KEY + sql + params).hexdigest()
if hash != request.GET.get("hash", ""):
return HttpResponse("<h3>Tamper alert</h3>") // SQL Tampering alert
if sql.lower().startswith("select"):
params = simplejson.loads(params)
cursor = connection.cursor()
After Change
params = request.GET.get("params", "")
hash = sha_constructor(settings.SECRET_KEY + sql + params).hexdigest()
if hash != request.GET.get("hash", ""):
return HttpResponseBadRequest("Tamper alert") // SQL Tampering alert
if sql.lower().startswith("select"):
params = simplejson.loads(params)
cursor = connection.cursor()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: jazzband/django-debug-toolbar
Commit Name: 03400c2c6b00ca8310cad7f30ac215d2b80d94b2
Time: 2008-10-07
Author: rob@cogit8.org
File Name: debug_toolbar/views.py
Class Name:
Method Name: sql_profile
Project Name: jazzband/django-debug-toolbar
Commit Name: 03400c2c6b00ca8310cad7f30ac215d2b80d94b2
Time: 2008-10-07
Author: rob@cogit8.org
File Name: debug_toolbar/views.py
Class Name:
Method Name: sql_select
Project Name: jazzband/django-debug-toolbar
Commit Name: 03400c2c6b00ca8310cad7f30ac215d2b80d94b2
Time: 2008-10-07
Author: rob@cogit8.org
File Name: debug_toolbar/views.py
Class Name:
Method Name: sql_explain