From dcf0b2a3c199a203ec20b3389c66aa1244fc6fd7 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 15 Jan 2010 11:45:48 +0000 Subject: [PATCH] minor update --- lib/core/common.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index 672ecde92..7ecf48e57 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -811,17 +811,14 @@ def searchEnvPath(fileName): return result -def urlEncodeCookieValues(cookieStr, warn=False): +def urlEncodeCookieValues(cookieStr): if cookieStr: result = "" - changed = False for part in cookieStr.split(';'): index = part.find('=') + 1 if index > 0: name = part[:index - 1].strip() value = urlencode(part[index:], convall=True) - if value != part[index:]: - changed = True result += "; %s=%s" % (name, value) elif part.strip().lower() != "secure": result += "%s%s" % ("%3B", urlencode(part, convall=True)) @@ -831,10 +828,6 @@ def urlEncodeCookieValues(cookieStr, warn=False): result = result[2:] elif result.startswith('%3B'): result = result[3:] - if changed and warn: - warnMsg = "cookie is provided in HTTP unsafe format containing one " - warnMsg += "of problematic characters: ' ,;'. temporary sanitized." - logger.warn(warnMsg) return result else: return None