[Checkins] [zopefoundation/Zope] b6fa2a: Prevent Error in isHTML() (#577)

Jens Vagelpohl noreply at github.com
Thu May 2 13:34:33 CEST 2019


  Branch: refs/heads/issue_562
  Home:   https://github.com/zopefoundation/Zope
  Commit: b6fa2ab19e9e5944343cad23dc9bc8d20baafe75
      https://github.com/zopefoundation/Zope/commit/b6fa2ab19e9e5944343cad23dc9bc8d20baafe75
  Author: Michael Howitz <mh at gocept.com>
  Date:   2019-05-02 (Thu, 02 May 2019)

  Changed paths:
    M CHANGES.rst
    M src/ZPublisher/HTTPResponse.py
    M src/ZPublisher/tests/testHTTPResponse.py

  Log Message:
  -----------
  Prevent Error in isHTML() (#577)

* Prevent Error in isHTML()

If the parameter cannot be decoded none of the following checkes can lead to `True`.
The last one even breaks on Python 3 because it tries to find a `text` in a `bytes` object.

* Add change log entry and test.


  Commit: 887658703da1f2e12a57f31a4d8dec4bca65a892
      https://github.com/zopefoundation/Zope/commit/887658703da1f2e12a57f31a4d8dec4bca65a892
  Author: Jens Vagelpohl <jens at netz.ooo>
  Date:   2019-05-02 (Thu, 02 May 2019)

  Changed paths:
    M CHANGES.rst
    M src/ZPublisher/HTTPResponse.py
    M src/ZPublisher/tests/testHTTPResponse.py

  Log Message:
  -----------
  Merge branch 'master' into issue_562


  Commit: 15dabec2b83c9d283bb98b00605016450aed285b
      https://github.com/zopefoundation/Zope/commit/15dabec2b83c9d283bb98b00605016450aed285b
  Author: Jens Vagelpohl <jens at netz.ooo>
  Date:   2019-05-02 (Thu, 02 May 2019)

  Changed paths:
    M CHANGES.rst
    M docs/wsgi.rst
    M src/ZPublisher/tests/test_WSGIPublisher.py

  Log Message:
  -----------
  - documentation updates and a test polish


Compare: https://github.com/zopefoundation/Zope/compare/6ca8d6153580...15dabec2b83c


More information about the checkins mailing list