Kaynağa Gözat

Chrome cookie decoding error handling

Innocenty Enikeew 10 yıl önce
ebeveyn
işleme
c4beac0f0c
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  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))