forked from indymedia/epicyon
Typo
parent
22487db89f
commit
b3ca4af05e
|
@ -870,11 +870,11 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
def _pathContainsBlogLink(self,baseDir: str,httpPrefix: str,domain: str,path: str) -> (str,str):
|
def _pathContainsBlogLink(self,baseDir: str,httpPrefix: str,domain: str,path: str) -> (str,str):
|
||||||
"""If the path contains a blog entry then return its filename
|
"""If the path contains a blog entry then return its filename
|
||||||
"""
|
"""
|
||||||
userEnding=path.split('/users/')
|
userEnding=path.split('/users/',1)
|
||||||
print('Test1 '+path+' '+str(userEnding))
|
print('Test1 '+path+' '+str(userEnding))
|
||||||
if '/' not in userEnding:
|
if '/' not in userEnding:
|
||||||
return None,None
|
return None,None
|
||||||
userEnding=userEnging.split('/')
|
userEnding=userEnding.split('/')
|
||||||
print('Test2 '+str(userEnding))
|
print('Test2 '+str(userEnding))
|
||||||
if len(userEnding)!=2:
|
if len(userEnding)!=2:
|
||||||
return None,None
|
return None,None
|
||||||
|
|
Loading…
Reference in New Issue