From 6bd8d82e7119a091dd10430ad675a1237ceb4cd4 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 26 2015 11:59:54 +0000 Subject: Specify that a filename might in fact be a path to a file Otherwise it breaks inline comments --- diff --git a/pagure/ui/fork.py b/pagure/ui/fork.py index e35fb80..6400381 100644 --- a/pagure/ui/fork.py +++ b/pagure/ui/fork.py @@ -248,11 +248,11 @@ def request_pull_patch(repo, requestid, username=None): @APP.route('//request-pull//comment/', methods=['POST']) @APP.route('//request-pull//comment//' - '/', methods=('GET', 'POST')) + '/', methods=('GET', 'POST')) @APP.route('/fork///request-pull//comment/', methods=['POST']) @APP.route('/fork///request-pull//comment/' - '//', methods=('GET', 'POST')) + '//', methods=('GET', 'POST')) def pull_request_add_comment( repo, requestid, commit=None, filename=None, row=None, username=None):