Author: eallen
Date: 2008-10-17 22:33:01 -0400 (Fri, 17 Oct 2008)
New Revision: 2658
Modified:
mgmt/trunk/cumin/python/cumin/job.py
Log:
escape the job search error message to avoid xhtml errors
Modified: mgmt/trunk/cumin/python/cumin/job.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/job.py 2008-10-18 02:20:09 UTC (rev 2657)
+++ mgmt/trunk/cumin/python/cumin/job.py 2008-10-18 02:33:01 UTC (rev 2658)
@@ -263,7 +263,7 @@
def render_search_prompt(self, session):
not_found = self.not_found.get(session)
- return not_found and "%s Not Found" % not_found or
self.render_search_default_prompt(session)
+ return not_found and "%s Not Found" % escape_entity(not_found) or
self.render_search_default_prompt(session)
def render_search_default_prompt(self, session):
return "Enter Job ID"
Show replies by date