Commits

Thomas Waldmann committed 62bfa17

always use itemname:... in for item names within routes

  • Participants
  • Parent commits e1f9d9b

Comments (0)

Files changed (1)

File MoinMoin/apps/frontend/views.py

     return rev1, rev2
 
 
-@frontend.route('/+diffraw/<path:item_name>')
+@frontend.route('/+diffraw/<itemname:item_name>')
 def diffraw(item_name):
     # TODO get_item and get_revision calls may raise an AccessDenied.
     #      If this happens for get_item, don't show the diff at all
     return _diff_raw(item, rev1, rev2)
 
 
-@frontend.route('/+diff/<path:item_name>')
+@frontend.route('/+diff/<itemname:item_name>')
 def diff(item_name):
     item = flaskg.storage[item_name]
     bookmark_time = request.values.get('bookmark')
     return matches
 
 
-@frontend.route('/+sitemap/<item_name>')
+@frontend.route('/+sitemap/<itemname:item_name>')
 def sitemap(item_name):
     """
     sitemap view shows item link structure, relative to current item