Skip to content

Commit

Permalink
Upgrade clojail and blanket blacklist some namespaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynes committed Jun 20, 2012
1 parent 15f16cd commit c352b3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion project.clj
Expand Up @@ -4,7 +4,7 @@
[commons-lang/commons-lang "2.5"]
[commons-io/commons-io "1.4"]
[backtype/clj-time "0.3.2"]
[clojail "0.5.0"]
[clojail "0.5.2"]
[clj-http "0.2.6"]
[irclj "0.4.1"]
[congomongo "0.1.7"]
Expand Down
6 changes: 4 additions & 2 deletions src/lazybot/plugins/clojure.clj
@@ -1,6 +1,6 @@
(ns lazybot.plugins.clojure
(:use clojure.stacktrace
(clojail testers core)
(clojail testers core) ; What? What the fuck? Fix this. Fuck.
lazybot.registry
clojure.tools.logging
[lazybot.utilities :only [on-thread verify trim-string shorten-url]]
Expand Down Expand Up @@ -31,7 +31,9 @@
(str (and macro "Macro ") arglists "; " docs))))

(def sb
(sandbox (into secure-tester #{'somnium.congomongo 'clojail.core 'clojail.jvm})
(sandbox (blanket secure-tester
"somnium"
"lazybot")
:transform pr-str
:init '(defmacro doc [s]
(if (special-symbol? s)
Expand Down

0 comments on commit c352b3b

Please sign in to comment.