Permalink
Browse files

URLEncode follow links as well

  • Loading branch information...
1 parent 3156e11 commit a03a6d98671d5292883f1162f5fecbbaaa145986 @chrismgray committed Dec 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/foreclojure/users.clj
@@ -97,7 +97,7 @@
[:br]]))
(defn follow-url [username follow?]
- (str "/user/" (if follow? "follow" "unfollow") "/" username))
+ (str "/user/" (if follow? "follow" "unfollow") "/" (URLEncoder/encode username)))
(defn following-checkbox [current-user-id following user-id user]
(if (and current-user-id (not= current-user-id user-id))

0 comments on commit a03a6d9

Please sign in to comment.