Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit 0cf3dddf89d86e5806e07b2b250e09f67251623c
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat Feb 9 20:27:40 2013 +0100
The API should not use csrf in the form
---------------------------------------------------------------
coprs_frontend/coprs/views/api_ns/api_general.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/coprs_frontend/coprs/views/api_ns/api_general.py
b/coprs_frontend/coprs/views/api_ns/api_general.py
index d12ea7e..081aceb 100644
--- a/coprs_frontend/coprs/views/api_ns/api_general.py
+++ b/coprs_frontend/coprs/views/api_ns/api_general.py
@@ -132,7 +132,7 @@ def api_coprs_by_owner(username=None):
methods=["POST"])
@login_required
def copr_new_build(username, coprname):
- form = forms.BuildForm()
+ form = forms.BuildForm(csrf_enabled=False)
copr = coprs_logic.CoprsLogic.get(flask.g.user, username,
coprname).first()
httpcode = 200