Skip to content

Commit

Permalink
Remove unnecessary use of 'read-string'
Browse files Browse the repository at this point in the history
This particular usage of 'read-string' does not expose the system to
arbitrary code execution from external sources, but it is a good habit
to avoid invoking the Clojure reader when a simpler alternative is
available.
  • Loading branch information
Stuart Sierra committed Mar 29, 2013
1 parent 4421c29 commit f55895e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cors/src/cors/server.clj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
(constantly (bootstrap/create-server (merge service/service opts)))))

(defn -main [& args]
(create-server [::bootstrap/port (read-string (first args))])
(create-server [::bootstrap/port (Long/valueOf (first args))])
(bootstrap/start service-instance))


Expand Down

0 comments on commit f55895e

Please sign in to comment.