forked from indymedia/epicyon
http prefix for actor
parent
40c949f054
commit
7c9f78f97d
|
@ -2456,7 +2456,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
pageNumber=int(pageNumberStr)
|
pageNumber=int(pageNumberStr)
|
||||||
self.path=self.path.split('?page=')[0]
|
self.path=self.path.split('?page=')[0]
|
||||||
|
|
||||||
actorStr=self.server.domainFull+self.path.replace('/searchhandle','')
|
actorStr=self.server.httpPrefix+'://'+self.server.domainFull+self.path.replace('/searchhandle','')
|
||||||
length = int(self.headers['Content-length'])
|
length = int(self.headers['Content-length'])
|
||||||
searchParams=self.rfile.read(length).decode('utf-8')
|
searchParams=self.rfile.read(length).decode('utf-8')
|
||||||
if 'searchtext=' in searchParams:
|
if 'searchtext=' in searchParams:
|
||||||
|
|
|
@ -102,7 +102,6 @@ def htmlSearchSharedItems(baseDir: str,searchStr: str, \
|
||||||
"""
|
"""
|
||||||
currPage=1
|
currPage=1
|
||||||
ctr=0
|
ctr=0
|
||||||
actor=httpPrefix+'://'+actor
|
|
||||||
sharedItemsForm=''
|
sharedItemsForm=''
|
||||||
searchStrLower=searchStr.replace('%2B','+').replace('%40','@').replace('%3A',':').replace('%23','#').lower().strip('\n')
|
searchStrLower=searchStr.replace('%2B','+').replace('%40','@').replace('%3A',':').replace('%23','#').lower().strip('\n')
|
||||||
searchStrLowerList=searchStrLower.split('+')
|
searchStrLowerList=searchStrLower.split('+')
|
||||||
|
|
Loading…
Reference in New Issue