changeset 149:c5b967d9d1e6

fixed MoinMoinBugs/TypeErrorOnHttpsPageChangeEmail imported from: moin--main--1.5--patch-151
author Florian Festi <Florian.Festi@trick.informatik.uni-stuttgart.de>
date Fri, 28 Oct 2005 10:19:57 +0000
parents 4a64816584ae
children 3f6de4cba30b
files MoinMoin/request.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/request.py	Fri Oct 28 10:01:17 2005 +0000
+++ b/MoinMoin/request.py	Fri Oct 28 10:19:57 2005 +0000
@@ -273,9 +273,9 @@
         
         @param env: dict like object containing cgi meta variables
         """
-        self.is_ssl = (env.get('SSL_PROTOCOL') or
-                       env.get('SSL_PROTOCOL_VERSION') or
-                       env.get('HTTPS') == 'on')
+        self.is_ssl = bool(env.get('SSL_PROTOCOL') or
+                           env.get('SSL_PROTOCOL_VERSION') or
+                           env.get('HTTPS') == 'on')
 
     def setHost(self, host=None):
         """ Set http_host