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 @@ -442,10 +442,10 @@ def test_undecodable_filename(self):
442
442
def test_undecodable_parameter (self ):
443
443
# sanity check using a valid parameter
444
444
response = self .request (self .base_url + '/?x=123' ).read ()
445
- self .assertRegex (response , f 'listing for { self .base_url } /\?x=123' .encode ('latin1' ))
445
+ self .assertRegex (response , rf 'listing for { self .base_url } /\?x=123' .encode ('latin1' ))
446
446
# now the bogus encoding
447
447
response = self .request (self .base_url + '/?x=%bb' ).read ()
448
- self .assertRegex (response , f 'listing for { self .base_url } /\?x=\xef \xbf \xbd ' .encode ('latin1' ))
448
+ self .assertRegex (response , rf 'listing for { self .base_url } /\?x=\xef\xbf\xbd' .encode ('latin1' ))
449
449
450
450
def test_get_dir_redirect_location_domain_injection_bug (self ):
451
451
"""Ensure //evil.co/..%2f../../X does not put //evil.co/ in Location.
You can’t perform that action at this time.
0 commit comments