mirror of https://gitlab.com/bashrc2/epicyon
Snake case
parent
49d6219e78
commit
e03417ef54
|
@ -261,7 +261,7 @@ from utils import get_image_mime_type
|
||||||
from utils import has_object_dict
|
from utils import has_object_dict
|
||||||
from utils import user_agent_domain
|
from utils import user_agent_domain
|
||||||
from utils import isLocalNetworkAddress
|
from utils import isLocalNetworkAddress
|
||||||
from utils import permittedDir
|
from utils import permitted_dir
|
||||||
from utils import isAccountDir
|
from utils import isAccountDir
|
||||||
from utils import getOccupationSkills
|
from utils import getOccupationSkills
|
||||||
from utils import getOccupationName
|
from utils import getOccupationName
|
||||||
|
@ -14897,7 +14897,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
'_GET', 'GET busy time',
|
'_GET', 'GET busy time',
|
||||||
self.server.debug)
|
self.server.debug)
|
||||||
|
|
||||||
if not permittedDir(self.path):
|
if not permitted_dir(self.path):
|
||||||
if self.server.debug:
|
if self.server.debug:
|
||||||
print('DEBUG: GET Not permitted')
|
print('DEBUG: GET Not permitted')
|
||||||
self._404()
|
self._404()
|
||||||
|
|
2
utils.py
2
utils.py
|
@ -2815,7 +2815,7 @@ def isAccountDir(dirName: str) -> bool:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
def permittedDir(path: str) -> bool:
|
def permitted_dir(path: str) -> bool:
|
||||||
"""These are special paths which should not be accessible
|
"""These are special paths which should not be accessible
|
||||||
directly via GET or POST
|
directly via GET or POST
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue