Commits

Jason R. Coombs committed 4edcd41

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

Comments (0)

Files changed (1)

cherrypy/_cperror.py

         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