1. Yang Fanxin
  2. CherryPy

Commits

Jason R. Coombs  committed 4edcd41

Fixed error in test_json_input when unicode args are passed to get_error_page.

  • Participants
  • Parent commits 31145c9
  • Branches default

Comments (0)

Files changed (1)

File cherrypy/_cperror.py

View file
  • Ignore whitespace
         if v is None:
             kwargs[k] = ""
         else:
-            kwargs[k] = _escape(kwargs[k])
+            kwargs[k] = tonative(_escape(kwargs[k]))
 
     # Use a custom template or callable for the error page?
     pages = cherrypy.serving.request.error_page