浏览代码

Chrome cookie decoding error handling

Innocenty Enikeew 10 年之前
父节点
当前提交
c4beac0f0c
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/utils.lisp

+ 3 - 1
src/utils.lisp

@@ -137,7 +137,9 @@
                                                       :name name
                                                       :domain host-key
                                                       :value (if (string= value "")
-                                                                 (chrome-cookie-decode encrypted)
+                                                                 (handler-case
+                                                                     (chrome-cookie-decode encrypted)
+                                                                   (error () ""))
                                                                  value)
                                                       :path path
                                                       :expires (if (equal expires 0) nil (floor expires 1000))