# HG changeset patch # User Paul Boddie # Date 1377639284 -7200 # Node ID 68bbf53c6ba089dd47559dfbfb9ed4fd9fc0efe5 # Parent 8901025c07ce6f121c3da5ac578ffeba7296cd92 Fixed query parameters by removing stray fragments in update URLs. diff -r 8901025c07ce -r 68bbf53c6ba0 actions/SharedUpdates.py --- a/actions/SharedUpdates.py Tue Aug 27 23:33:41 2013 +0200 +++ b/actions/SharedUpdates.py Tue Aug 27 23:34:44 2013 +0200 @@ -121,7 +121,13 @@ # Get the URL that yields only the fragment. - fragment_link = "%s?action=SharedUpdate&fragment=%s" % (update.link, update.fragment) + i = update.link.rfind("#") + if i != -1: + link_without_fragment = update.link[:i] + else: + link_without_fragment = update.link + + fragment_link = "%s?action=SharedUpdate&fragment=%s" % (link_without_fragment, update.fragment) download_links = []