浏览代码

more restrictive elisp eval of header arguments

* lisp/ob-core.el (org-babel-read): More restrictive elisp eval of
  header arguments.
Eric Schulte 12 年之前
父节点
当前提交
6c11a0664e
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      lisp/ob-core.el

+ 2 - 3
lisp/ob-core.el

@@ -2514,9 +2514,8 @@ appropriate."
   (if (and (stringp cell) (not (equal cell "")))
       (or (org-babel-number-p cell)
           (if (and (not inhibit-lisp-eval)
-		   (member (substring cell 0 1) '("(" "'" "`" "[" "*"))
-		   (or (not (equal (substring cell 0 1) "*"))
-		       (equal (substring cell (- (length cell) 1)) "*")))
+		   (or (member (substring cell 0 1) '("(" "'" "`" "["))
+		       (string= cell "*this*")))
               (eval (read cell))
             (if (string= (substring cell 0 1) "\"")
 		(read cell)