Skip to content

Commit

Permalink
Fix request parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
ser8phin committed Apr 14, 2022
1 parent 8cccf93 commit 9b81eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pretix_computop/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class ReturnView(ComputopOrderView, View):
viewsource = "return_view"

def post(self, request, *args, **kwargs):
if request.POST["Data"]:
if request.POST.get("Data"):
try:
response = self.pprov.parse_data(request.POST.get("Data"))
if self.pprov.check_hash(response):
Expand Down Expand Up @@ -89,7 +89,7 @@ class NotifyView(ComputopOrderView, View):
viewsource = "notify_view"

def post(self, request, *args, **kwargs):
if request.POST["Data"]:
if request.POST.get("Data"):
try:
response = self.pprov.parse_data(request.POST.get("Data"))
except PaymentException:
Expand Down

0 comments on commit 9b81eb5

Please sign in to comment.