File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -811,17 +811,14 @@ def searchEnvPath(fileName):
811811
812812 return result
813813
814- def urlEncodeCookieValues (cookieStr , warn = False ):
814+ def urlEncodeCookieValues (cookieStr ):
815815 if cookieStr :
816816 result = ""
817- changed = False
818817 for part in cookieStr .split (';' ):
819818 index = part .find ('=' ) + 1
820819 if index > 0 :
821820 name = part [:index - 1 ].strip ()
822821 value = urlencode (part [index :], convall = True )
823- if value != part [index :]:
824- changed = True
825822 result += "; %s=%s" % (name , value )
826823 elif part .strip ().lower () != "secure" :
827824 result += "%s%s" % ("%3B" , urlencode (part , convall = True ))
@@ -831,10 +828,6 @@ def urlEncodeCookieValues(cookieStr, warn=False):
831828 result = result [2 :]
832829 elif result .startswith ('%3B' ):
833830 result = result [3 :]
834- if changed and warn :
835- warnMsg = "cookie is provided in HTTP unsafe format containing one "
836- warnMsg += "of problematic characters: ' ,;'. temporary sanitized."
837- logger .warn (warnMsg )
838831 return result
839832 else :
840833 return None
You can’t perform that action at this time.
0 commit comments