Skip to content
Browse files

Upgrade clojail.

  • Loading branch information...
1 parent b2ebc38 commit daafa51c63bfc1cd74942ea8b340068b53f46798 @Raynes committed Jun 28, 2012
Showing with 4 additions and 5 deletions.
  1. +2 −2 project.clj
  2. +2 −3 src/tryclojure/models/eval.clj
View
4 project.clj
@@ -1,9 +1,9 @@
(defproject tryclojure "0.1.0-SNAPSHOT"
:description "A simple web-based Clojure REPL for trying out Clojure without having to install it."
:dependencies [[org.clojure/clojure "1.4.0"]
- [noir "1.3.0-beta3"]
+ [noir "1.3.0-beta10"]
[commons-lang/commons-lang "2.5"]
- [clojail "0.5.1"]]
+ [clojail "0.6.0"]]
:jvm-opts ["-Djava.security.policy=example.policy""-Xmx80M"]
:main tryclojure.server)
View
5 src/tryclojure/models/eval.clj
@@ -1,5 +1,5 @@
(ns tryclojure.models.eval
- (:require [clojail.testers :refer [secure-tester-without-def]]
+ (:require [clojail.testers :refer [secure-tester-without-def blanket]]
[clojail.core :refer [sandbox]]
[clojure.stacktrace :refer [root-cause]]
[noir.session :as session])
@@ -17,8 +17,7 @@
(eval-form form sbox)))
(def try-clojure-tester
- (into secure-tester-without-def
- #{'tryclojure.core}))
+ (blanket secure-tester-without-def "tryclojure"))
(defn make-sandbox []
(sandbox try-clojure-tester

0 comments on commit daafa51

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