Browse Source

Make sure cleanhost only has one trailing slash

pull/2096/merge
Ruud 12 years ago
parent
commit
3baf12d3e4
  1. 4
      couchpotato/core/helpers/variable.py

4
couchpotato/core/helpers/variable.py

@ -113,8 +113,8 @@ def cleanHost(host):
if not host.startswith(('http://', 'https://')):
host = 'http://' + host
if not host.endswith('/'):
host += '/'
host = host.rstrip('/')
host += '/'
return host

Loading…
Cancel
Save