Commits

Anonymous committed ceb6f9e

Merged [4120] to 0.10-stable.

Comments (0)

Files changed (1)

trac/ticket/web_ui.py

     # IRequestHandler methods
 
     def match_request(self, req):
-        return re.match(r'/newticket/?', req.path_info) is not None
+        return re.match(r'/newticket/?$', req.path_info) is not None
 
     def process_request(self, req):
         req.perm.assert_permission('TICKET_CREATE')
     # IRequestHandler methods
 
     def match_request(self, req):
-        match = re.match(r'/ticket/([0-9]+)', req.path_info)
+        match = re.match(r'/ticket/([0-9]+)$', req.path_info)
         if match:
             req.args['id'] = match.group(1)
             return True