소스 검색

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))