Skip to content
Browse files

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

…cure key)
  • Loading branch information...
1 parent cf55a7c commit 09208d3f4a480870b65e0aa6ee91332e83586d73 @pigmej pigmej committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 CTK/Server.py
View
5 CTK/Server.py
@@ -28,6 +28,7 @@
import errno
import threading
import traceback
+import urlparse
import pyscgi
import Cookie
@@ -121,8 +122,10 @@ def _do_handle (self):
my_thread.scgi_conn = self
my_thread.request_url = url
+ base_path = urlparse.urlsplit(url).path
+
for published in server._web_paths:
- if re.match (published._regex, url):
+ if re.match (published._regex, base_path):
# POST
if published._method == 'POST':
post = self._process_post()

0 comments on commit 09208d3

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