[#8356] merge fix for [ae484932f]
diff --git a/ForgeGit/forgegit/tests/functional/test_controllers.py b/ForgeGit/forgegit/tests/functional/test_controllers.py
index 3202b62..c5050c7 100644
--- a/ForgeGit/forgegit/tests/functional/test_controllers.py
+++ b/ForgeGit/forgegit/tests/functional/test_controllers.py
@@ -303,13 +303,13 @@
         resp = self.app.get(url)
         assert_in('%2F means /', resp.body.decode('utf-8'))
         assert_equal(resp.headers.get('Content-Disposition').decode('utf-8'),
-                     'attachment;filename="with%2Furlquote-literal.txt"')
+                     'attachment;filename="with%252Furlquote-literal.txt"')
 
         url = ci + 'tree/' + h.urlquote('with"&:specials.txt') + '?format=raw'
         resp = self.app.get(url)
         assert_in('"&: encodes as %22%26%3A', resp.body.decode('utf-8'))
         assert_equal(resp.headers.get('Content-Disposition').decode('utf-8'),
-                     'attachment;filename="with"&:specials.txt"')
+                     'attachment;filename="with%22%26%3Aspecials.txt"')
 
     def test_invalid_file(self):
         ci = self._get_ci()