* lib/viewvc.py

(view_error): Settle for simple HTML-escaping of error messages
    rather than full htmlification.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@2225 8cb11bc2-c004-0410-86c3-e597b4017df7
orig-r2243
cmpilato 2009-07-14 20:43:46 +00:00
parent f038efef96
commit 8df8e878f4
1 changed files with 2 additions and 3 deletions

View File

@ -4162,10 +4162,9 @@ def view_error(server, cfg):
exc_dict = debug.GetExceptionData()
status = exc_dict['status']
if exc_dict['msg']:
exc_dict['msg'] = htmlify(exc_dict['msg'], mangle_email_addrs=0)
exc_dict['msg'] = server.escape(exc_dict['msg'])
if exc_dict['stacktrace']:
exc_dict['stacktrace'] = htmlify(exc_dict['stacktrace'],
mangle_email_addrs=0)
exc_dict['stacktrace'] = server.escape(exc_dict['stacktrace'])
handled = 0
# use the configured error template if possible