From 4e9477d44c7c10b663544ba2745d7a7ad3120c55 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sun, 17 May 2020 17:12:13 +0200 Subject: [PATCH] blog: Don't use port --- source/blog/blog.cgi | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/blog/blog.cgi b/source/blog/blog.cgi index 0875ea7..2865925 100755 --- a/source/blog/blog.cgi +++ b/source/blog/blog.cgi @@ -559,11 +559,12 @@ def sanitize(obj): # find out our URL, needed for syndication try: n = os.environ['SERVER_NAME'] - p = os.environ['SERVER_PORT'] + # Removed port because it messes up when behind a proxy + #p = os.environ['SERVER_PORT'] s = os.environ['SCRIPT_NAME'] - if p == '80': p = '' - else: p = ':' + p - full_url = 'https://%s%s%s' % (n, p, s) + #if p == '80': p = '' + #else: p = ':' + p + full_url = 'https://%s%s' % (n, s) except KeyError: full_url = 'Not needed' -- 2.43.0