Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed url matching when using url with query string arguments (ie. se…

…cure key)
  • Loading branch information...
commit 09208d3f4a480870b65e0aa6ee91332e83586d73 1 parent cf55a7c
Jędrzej Nowak authored April 27, 2012

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  CTK/Server.py
5  CTK/Server.py
@@ -28,6 +28,7 @@
28 28
 import errno
29 29
 import threading
30 30
 import traceback
  31
+import urlparse
31 32
 
32 33
 import pyscgi
33 34
 import Cookie
@@ -121,8 +122,10 @@ def _do_handle (self):
121 122
         my_thread.scgi_conn   = self
122 123
         my_thread.request_url = url
123 124
 
  125
+        base_path = urlparse.urlsplit(url).path
  126
+
124 127
         for published in server._web_paths:
125  
-            if re.match (published._regex, url):
  128
+            if re.match (published._regex, base_path):
126 129
                 # POST
127 130
                 if published._method == 'POST':
128 131
                     post = self._process_post()

0 notes on commit 09208d3

Please sign in to comment.
Something went wrong with that request. Please try again.