Commits

Richard Jones committed 3e6cd6b

use relative content links for HTTPS

Comments (0)

Files changed (2)

     c.execute('delete from users where name=%s', (old,))
 
 def show_user(store, name):
-    c = store.get_cursor()
     user = store.get_user(name)
     if not user:
         sys.exit('user %r does not exist' % name)
         self.url = c.get('webui', 'url')
         self.scheme_host = urlunsplit(urlsplit(self.url)[:2]+('','',''))
         self.orig_pydotorg = self.pydotorg = c.get('webui', 'pydotorg')
+        if self.url.startswith("https:"):
+            self.pydotorg = '/'
         self.simple_script = c.get('webui', 'simple_script')
         self.files_url = c.get('webui', 'files_url')
         self.rss_file = c.get('webui', 'rss_file')