main
Bob Mottram 2021-09-12 14:37:36 +01:00
parent 126e07df69
commit 13d5a46b1b
1 changed files with 2 additions and 4 deletions

View File

@ -11621,15 +11621,13 @@ class PubServer(BaseHTTPRequestHandler):
refererDomain = refererDomain.split('"')[0]
elif uaStr:
if '+https://' in uaStr:
refererDomain = \
self.headers['User-Agent'].split('+https://')[1]
refererDomain = uaStr.split('+https://')[1]
if '/' in refererDomain:
refererDomain = refererDomain.split('/')[0]
elif ')' in refererDomain:
refererDomain = refererDomain.split(')')[0]
elif '+http://' in uaStr:
refererDomain = \
self.headers['User-Agent'].split('+http://')[1]
refererDomain = uaStr.split('+http://')[1]
if '/' in refererDomain:
refererDomain = refererDomain.split('/')[0]
elif ')' in refererDomain: