mirror of https://gitlab.com/bashrc2/epicyon
Check for users path
parent
d071081b3a
commit
41c6d2e286
18
daemon.py
18
daemon.py
|
@ -6481,7 +6481,10 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
"""Returns an ontology file
|
"""Returns an ontology file
|
||||||
"""
|
"""
|
||||||
if '.owl' in path or '.rdf' in path or '.json' in path:
|
if '.owl' in path or '.rdf' in path or '.json' in path:
|
||||||
ontologyStr = path.split('/ontologies/')[1].replace('#', '')
|
if '/ontologies/' in path:
|
||||||
|
ontologyStr = path.split('/ontologies/')[1].replace('#', '')
|
||||||
|
else:
|
||||||
|
ontologyStr = path.split('/data/')[1].replace('#', '')
|
||||||
ontologyFilename = None
|
ontologyFilename = None
|
||||||
ontologyFileType = 'application/rdf+xml'
|
ontologyFileType = 'application/rdf+xml'
|
||||||
if ontologyStr.startswith('DFC_'):
|
if ontologyStr.startswith('DFC_'):
|
||||||
|
@ -10908,6 +10911,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
divertToLoginScreen = False
|
divertToLoginScreen = False
|
||||||
if '/media/' not in path and \
|
if '/media/' not in path and \
|
||||||
'/ontologies/' not in path and \
|
'/ontologies/' not in path and \
|
||||||
|
'/data/' not in path and \
|
||||||
'/sharefiles/' not in path and \
|
'/sharefiles/' not in path and \
|
||||||
'/statuses/' not in path and \
|
'/statuses/' not in path and \
|
||||||
'/emoji/' not in path and \
|
'/emoji/' not in path and \
|
||||||
|
@ -13035,11 +13039,13 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
GETstartTime, GETtimings)
|
GETstartTime, GETtimings)
|
||||||
return
|
return
|
||||||
|
|
||||||
if '/ontologies/' in self.path:
|
if '/ontologies/' in self.path or \
|
||||||
self._getOntology(callingDomain,
|
'/data/' in self.path:
|
||||||
self.path, self.server.baseDir,
|
if not hasUsersPath(self.path):
|
||||||
GETstartTime, GETtimings)
|
self._getOntology(callingDomain,
|
||||||
return
|
self.path, self.server.baseDir,
|
||||||
|
GETstartTime, GETtimings)
|
||||||
|
return
|
||||||
|
|
||||||
self._benchmarkGETtimings(GETstartTime, GETtimings,
|
self._benchmarkGETtimings(GETstartTime, GETtimings,
|
||||||
'show emoji done',
|
'show emoji done',
|
||||||
|
|
3
utils.py
3
utils.py
|
@ -1790,7 +1790,8 @@ def _getReservedWords() -> str:
|
||||||
'ignores', 'linksmobile', 'newswiremobile',
|
'ignores', 'linksmobile', 'newswiremobile',
|
||||||
'minimal', 'search', 'eventdelete',
|
'minimal', 'search', 'eventdelete',
|
||||||
'searchemoji', 'catalog', 'conversationId',
|
'searchemoji', 'catalog', 'conversationId',
|
||||||
'mention', 'http', 'https')
|
'mention', 'http', 'https',
|
||||||
|
'ontologies', 'data')
|
||||||
|
|
||||||
|
|
||||||
def getNicknameValidationPattern() -> str:
|
def getNicknameValidationPattern() -> str:
|
||||||
|
|
Loading…
Reference in New Issue