Skip to content

Commit

Permalink
fixed url parsing to ignore dots in path parameters (rfc conform)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Raeder committed Sep 21, 2011
1 parent 674e58d commit affbad0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/clout/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
word #":([\p{L}_][\p{L}_0-9-]*)"
literal #"(:[^\p{L}_*]|[^:*])+"
word-group #(keyword (.group % 1))
word-regex #(regexs (word-group %) "[^/.,;?]+")]
word-regex #(regexs (word-group %) "[^/,;?]+")]
(CompiledRoute.
(re-pattern
(apply str
Expand All @@ -140,3 +140,4 @@
Route
(route-matches [route request]
(route-matches (route-compile route) request)))

0 comments on commit affbad0

Please sign in to comment.