From a4d309341dbcd3c28ee68e818c1d5ef54114adf8 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 6 Nov 2011 23:15:07 +0000 Subject: Sun Nov 6 23:15:07 UTC 2011 --- .../cherokee/fix-ctk-path-handler-match.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 community-testing/cherokee/fix-ctk-path-handler-match.patch (limited to 'community-testing/cherokee/fix-ctk-path-handler-match.patch') diff --git a/community-testing/cherokee/fix-ctk-path-handler-match.patch b/community-testing/cherokee/fix-ctk-path-handler-match.patch new file mode 100644 index 000000000..abd20c5ef --- /dev/null +++ b/community-testing/cherokee/fix-ctk-path-handler-match.patch @@ -0,0 +1,16 @@ +diff -upr cherokee-1.2.99.orig/admin/CTK/CTK/Server.py cherokee-1.2.99/admin/CTK/CTK/Server.py +--- cherokee-1.2.99.orig/admin/CTK/CTK/Server.py 2011-06-06 14:17:35.000000000 +0300 ++++ cherokee-1.2.99/admin/CTK/CTK/Server.py 2011-09-16 03:31:06.000000000 +0300 +@@ -121,8 +121,11 @@ class ServerHandler (pyscgi.SCGIHandler) + my_thread.scgi_conn = self + my_thread.request_url = url + ++ # Drop the query string before matching against the handlers ++ path = url.split('?', 1)[0] ++ + for published in server._web_paths: +- if re.match (published._regex, url): ++ if re.match (published._regex, path): + # POST + if published._method == 'POST': + post = self._process_post() -- cgit v1.2.3-54-g00ecf