Permalink
Browse files

Update clojail and use the new symbol blacklisting function.

  • Loading branch information...
1 parent 19c9add commit 401908a9edd49147c2364d2980b3ba56c03a1c68 @Raynes Raynes committed Jul 3, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 project.clj
  2. +2 −2 src/foreclojure/problems.clj
View
@@ -3,7 +3,7 @@
:dependencies [[org.clojure/clojure "1.4.0"]
[compojure "1.1.0"]
[hiccup "1.0.0"]
- [clojail "0.6.0"]
+ [clojail "0.6.2"]
[lib-noir "0.1.1"]
[congomongo "0.1.9"]
[org.jasypt/jasypt "1.7"]
@@ -14,7 +14,7 @@
[foreclojure.users :only [golfer? get-user-id disable-codebox?]]
[foreclojure.solutions :only [save-solution get-solution]]
[clojail.core :exclude [safe-read]]
- [clojail.testers :only [secure-tester blanket]]
+ [clojail.testers :only [secure-tester blanket blacklist-symbols]]
[somnium.congomongo :only [update! fetch-one fetch fetch-and-modify destroy!]]
[hiccup.form :only [form-to text-area hidden-field label text-field drop-down]]
[hiccup.element :only [link-to]]
@@ -169,7 +169,7 @@
"compojure"))
(defn get-tester [restricted]
- (into base-tester (concat restricted-list (map symbol restricted))))
+ (apply blacklist-symbols base-tester (concat restricted-list (map symbol restricted))))
(def sb (sandbox*))

0 comments on commit 401908a

Please sign in to comment.