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 @@ -418,10 +418,10 @@ def test_undecodable_filename(self):
418
418
def test_undecodable_parameter (self ):
419
419
# sanity check using a valid parameter
420
420
response = self .request (self .base_url + '/?x=123' ).read ()
421
- self .assertRegex (response , f'listing for { self .base_url } /\?x=123' .encode ('latin1' ))
421
+ self .assertRegex (response , f'listing for { self .base_url } /\\ ?x=123' .encode ('latin1' ))
422
422
# now the bogus encoding
423
423
response = self .request (self .base_url + '/?x=%bb' ).read ()
424
- self .assertRegex (response , f'listing for { self .base_url } /\?x=\xef \xbf \xbd ' .encode ('latin1' ))
424
+ self .assertRegex (response , f'listing for { self .base_url } /\\ ?x=\xef \xbf \xbd ' .encode ('latin1' ))
425
425
426
426
def test_get_dir_redirect_location_domain_injection_bug (self ):
427
427
"""Ensure //evil.co/..%2f../../X does not put //evil.co/ in Location.
You can’t perform that action at this time.
0 commit comments