From e7b5a2c6c0c40d788a89a9b3a797b028cd041c1c Mon Sep 17 00:00:00 2001 From: echel0n Date: Mon, 30 Jun 2014 01:15:10 -0700 Subject: [PATCH] Test fix for webroot issues. --- sickbeard/webserve.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index caa7277c..d41f913c 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -129,17 +129,16 @@ class HTTPRedirect(Exception): """Exception raised when the request should be redirected.""" def __init__(self, url, permanent=False, status=None): - self.url = url + self.url = urlparse.urljoin(sickbeard.WEB_ROOT, url) self.permanent = permanent self.status = status - Exception.__init__(self, url, permanent, status) + Exception.__init__(self, self.url, self.permanent, self.status) def __call__(self): """Use this exception as a request.handler (raise self).""" raise self def redirect(url, permanent=False, status=None): - url = urlparse.urljoin(sickbeard.WEB_ROOT, url) raise HTTPRedirect(url, permanent, status) @authenticated