mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +01:00
bug fix to filemanager
This commit is contained in:
@@ -6,6 +6,7 @@ from plogical.processUtilities import ProcessUtilities
|
||||
from websiteFunctions.models import Websites
|
||||
from random import randint
|
||||
from django.core.files.storage import FileSystemStorage
|
||||
import HTMLParser
|
||||
|
||||
class FileManager:
|
||||
def __init__(self, request, data):
|
||||
@@ -19,6 +20,8 @@ class FileManager:
|
||||
return HttpResponse(final_json)
|
||||
|
||||
def returnPathEnclosed(self, path):
|
||||
htmlParser = HTMLParser.HTMLParser()
|
||||
path = htmlParser.unescape(path)
|
||||
return "'" + path + "'"
|
||||
|
||||
def changeOwner(self, path):
|
||||
|
||||
Reference in New Issue
Block a user