From a36897b106c620dfc56c7ee875a105e99eb10064 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 31 Jan 2022 11:15:51 +0000 Subject: [PATCH] No plus in user agent url --- daemon.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/daemon.py b/daemon.py index f7b94624c..edc88ef85 100644 --- a/daemon.py +++ b/daemon.py @@ -13478,14 +13478,14 @@ class PubServer(BaseHTTPRequestHandler): elif '"' in referer_domain: referer_domain = referer_domain.split('"')[0] elif ua_str: - if '+https://' in ua_str: - referer_domain = ua_str.split('+https://')[1] + if 'https://' in ua_str: + referer_domain = ua_str.split('https://')[1] if '/' in referer_domain: referer_domain = referer_domain.split('/')[0] elif ')' in referer_domain: referer_domain = referer_domain.split(')')[0] - elif '+http://' in ua_str: - referer_domain = ua_str.split('+http://')[1] + elif 'http://' in ua_str: + referer_domain = ua_str.split('http://')[1] if '/' in referer_domain: referer_domain = referer_domain.split('/')[0] elif ')' in referer_domain: