From eff5620ea1e06c4e1d2633152dd1ae86ff61d413 Mon Sep 17 00:00:00 2001 From: Holger Trampe Date: Sat, 23 Oct 2021 01:15:18 +0200 Subject: [PATCH] encode vielleicht --- api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/views.py b/api/views.py index 2fb88dd..17689a3 100644 --- a/api/views.py +++ b/api/views.py @@ -443,7 +443,7 @@ def NCSwitchStandardFiles(request): standard = Standards.objects.get(pk=request.GET.get('standardid')) response_status = "OK" for f in standard.addedfiles.all(): - filesearchdata = '/files/' + settings.NEXTCLOUD_USER_API + '/Agenturdaten_' + str(standard.agency.pk) + 'infinity' + f.name.decode('utf-8', 'ignore') + '' + filesearchdata = '/files/' + settings.NEXTCLOUD_USER_API + '/Agenturdaten_' + str(standard.agency.pk) + 'infinity' + f.name.encode('utf-8', 'ignore') + '' r = requests.request("SEARCH", settings.NEXTCLOUD_URL + "remote.php/dav", data=filesearchdata, auth=(settings.NEXTCLOUD_USER_API, settings.NEXTCLOUD_PW_API), headers={'Content-Type' : 'text/xml'}) fileid = getFileIdFromXML(r.text) if(fileid == None):