File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -420,10 +420,10 @@ def test_undecodable_filename(self):
420
420
def test_undecodable_parameter (self ):
421
421
# sanity check using a valid parameter
422
422
response = self .request (self .base_url + '/?x=123' ).read ()
423
- self .assertRegex (response , f 'listing for { self .base_url } /\?x=123' .encode ('latin1' ))
423
+ self .assertRegex (response , rf 'listing for { self .base_url } /\?x=123' .encode ('latin1' ))
424
424
# now the bogus encoding
425
425
response = self .request (self .base_url + '/?x=%bb' ).read ()
426
- self .assertRegex (response , f 'listing for { self .base_url } /\?x=\xef \xbf \xbd ' .encode ('latin1' ))
426
+ self .assertRegex (response , rf 'listing for { self .base_url } /\?x=\xef\xbf\xbd' .encode ('latin1' ))
427
427
428
428
def test_get_dir_redirect_location_domain_injection_bug (self ):
429
429
"""Ensure //evil.co/..%2f../../X does not put //evil.co/ in Location.
You can’t perform that action at this time.
0 commit comments