Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

updated to clojure 1.5.1 and fixed the read-string vulnerability using edn. #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject fetch "0.1.0-alpha2"
(defproject fetch "0.1.0-alpha3"
:description "A ClojureScript and Noir library to make client-server interaction painless."
:dependencies [[clojure "1.3.0"]
:dependencies [[org.clojure/clojure "1.5.1"]
[noir "1.2.2"]])
4 changes: 2 additions & 2 deletions src/noir/fetch/remotes.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
(ns noir.fetch.remotes
(:require [clojure.edn :as edn])
(:use [noir.core :only [defpage]]))

(def remotes (atom {}))
Expand All @@ -10,8 +11,7 @@
(swap! remotes assoc remote func))

(defn safe-read [s]
(binding [*read-eval* false]
(read-string s)))
(edn/read-string s))

(defmacro defremote [remote params & body]
`(do
Expand Down