mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-16 04:22:05 +01:00
decode url
This commit is contained in:
@@ -64,8 +64,9 @@ def downloadFile(request):
|
||||
try:
|
||||
userID = request.session['userID']
|
||||
admin = Administrator.objects.get(pk=userID)
|
||||
import urllib.parse
|
||||
|
||||
fileToDownload = request.GET.get('fileToDownload')
|
||||
fileToDownload = urllib.parse.unquote(request.GET.get('fileToDownload'))
|
||||
domainName = request.GET.get('domainName')
|
||||
|
||||
currentACL = ACLManager.loadedACL(userID)
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
import urllib.parse
|
||||
encodedStr = 'ville.laprairie.qc.ca&fileToDownload=/home/ville.laprairie.qc.ca/public_html/app/uploads/2019/05/2019-05-16_Terre-contamine%CC%81e-sur-Goyer-150x150.jpg'
|
||||
print(urllib.parse.unquote(encodedStr))
|
||||
Reference in New Issue
Block a user