Skip to content

Commit

Permalink
- restored part of the old behavior (CMF 2.2 depends on it)
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Mar 9, 2011
1 parent aa823d2 commit ec8f7ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/five/formlib/formbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ class FiveFormlibMixin(object):
# decoded first and the page encoding is set before proceeding.

def update(self):
# BBB: for CMFDefault < 2.3 (explicit charset required)
self.request.RESPONSE.setHeader('Content-Type',
'text/html; charset=%s' % HTTPRequest.default_encoding)
# BBB: for Zope < 2.14
if not getattr(self.request, 'postProcessInputs', False):
processInputs(self.request, [HTTPRequest.default_encoding])
Expand Down

0 comments on commit ec8f7ae

Please sign in to comment.