Navigation Menu

Skip to content

Commit

Permalink
Critical security fix to ':parse-as float' in view fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
slburson committed Aug 13, 2012
1 parent 69ed8e1 commit 468218d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/types/parsers/common.lisp
Expand Up @@ -105,7 +105,8 @@
(ignore-errors
(let* ((presentp (text-input-present-p value))
(float-value (when presentp
(float (read-from-string value))))
(let ((*read-eval* nil))
(float (read-from-string value)))))
(round-factor (awhen (float-parser-round parser)
(expt 10 (if (eq it t) 0 it)))))
(unless (floatp float-value)
Expand Down

0 comments on commit 468218d

Please sign in to comment.