|
@@ -15,7 +15,7 @@ from rest_framework.renderers import StaticHTMLRenderer
|
|
from dns import resolver
|
|
from dns import resolver
|
|
from django.template.loader import get_template
|
|
from django.template.loader import get_template
|
|
import desecapi.authentication as auth
|
|
import desecapi.authentication as auth
|
|
-import base64
|
|
|
|
|
|
+import base64, binascii
|
|
from desecapi import settings
|
|
from desecapi import settings
|
|
from rest_framework.exceptions import (
|
|
from rest_framework.exceptions import (
|
|
APIException, MethodNotAllowed, PermissionDenied, ValidationError)
|
|
APIException, MethodNotAllowed, PermissionDenied, ValidationError)
|
|
@@ -364,6 +364,8 @@ class DynDNS12Update(APIView):
|
|
pass
|
|
pass
|
|
except UnicodeDecodeError:
|
|
except UnicodeDecodeError:
|
|
pass
|
|
pass
|
|
|
|
+ except binascii.Error:
|
|
|
|
+ pass
|
|
|
|
|
|
# 4. username parameter
|
|
# 4. username parameter
|
|
if 'username' in request.query_params:
|
|
if 'username' in request.query_params:
|