]> git.parisson.com Git - teleforma.git/commitdiff
fix host again
authoryomguy <yomguy@parisson.com>
Thu, 19 Jul 2012 20:05:37 +0000 (22:05 +0200)
committeryomguy <yomguy@parisson.com>
Thu, 19 Jul 2012 20:05:37 +0000 (22:05 +0200)
teleforma/templatetags/teleforma_tags.py

index 51b3d5fa1718bf2454e805262cb582dbacf71cfc..f027136d76f12fafbc4e4026b3d66ec324a9fcb1 100644 (file)
@@ -192,7 +192,7 @@ def get_video_id(media):
 def get_host(url, host):
     u = urlparse(url)
     if host == '127.0.0.1' or host == 'localhost':
-        u.netloc = host
-        return u.geturl()
+        nu = u.scheme + '://' + host + path
+        return nu
     else:
         return url