diff roundup/cgi/templating.py @ 4380:11d9f3f98897

fix potential XSS hole
author Richard Jones <richard@users.sourceforge.net>
date Thu, 01 Jul 2010 01:41:54 +0000
parents 05a65559d873
children d5239335fae3
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Tue Jun 29 07:55:34 2010 +0000
+++ b/roundup/cgi/templating.py	Thu Jul 01 01:41:54 2010 +0000
@@ -115,9 +115,9 @@
     if os.path.exists(src):
         return (src, generic)
 
-    raise NoTemplate, 'No template file exists for templating "%s" '\
+    raise NoTemplate('No template file exists for templating "%s" '
         'with template "%s" (neither "%s" nor "%s")'%(name, view,
-        filename, generic)
+        filename, generic))
 
 class Templates:
     templates = {}

Roundup Issue Tracker: http://roundup-tracker.org/