bugfix
This commit is contained in:
parent
8eb0394140
commit
5455ad447d
@ -343,16 +343,12 @@ class ProcessorResource(AppLogger, StaticResource,Url2File):
|
|||||||
url = self.entireUrl(request, url)
|
url = self.entireUrl(request, url)
|
||||||
host = '/'.join(url.split('/')[:3])
|
host = '/'.join(url.split('/')[:3])
|
||||||
path = '/' + '/'.join(url.split('/')[3:])
|
path = '/' + '/'.join(url.split('/')[3:])
|
||||||
real_path = self.abspath(request, path)
|
|
||||||
if config.website.startswiths:
|
if config.website.startswiths:
|
||||||
for a in config.website.startswiths:
|
for a in config.website.startswiths:
|
||||||
if path.startswith(a.leading):
|
if path.startswith(a.leading):
|
||||||
processor = FunctionProcessor(path,self,a)
|
processor = FunctionProcessor(path,self,a)
|
||||||
return processor
|
return processor
|
||||||
|
|
||||||
if real_path is None:
|
|
||||||
print(f'real_path is None ..., {url=}, {fpath=}')
|
|
||||||
return None
|
|
||||||
if fpath is None:
|
if fpath is None:
|
||||||
print(f'fpath is None ..., {url=}, {fpath=}')
|
print(f'fpath is None ..., {url=}, {fpath=}')
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user