]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix whitespace regexp in gnus-base64-repad
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 30 Sep 2020 03:05:04 +0000 (05:05 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 30 Sep 2020 03:05:09 +0000 (05:05 +0200)
* lisp/gnus/gnus-util.el (gnus-base64-repad): Fix the whitespace
regexp.

lisp/gnus/gnus-util.el

index e98af10e1a072c74c6e977d323bb238a0979a441..0e15ebce6c6c224ed6aacc67b6a198a86334a54e 100644 (file)
@@ -1368,7 +1368,7 @@ CRLF (RFC 5321 SMTP)."
   ;;   input (3.1, 3.3)
   ;; - if line-length is set, error on input exceeding the limit (3.1)
   ;; - reject characters outside base encoding (3.3, also section 12)
-  (let ((splitstr (split-string str "\\s-+" t)))
+  (let ((splitstr (split-string str "[\n\r \t]+" t)))
     (when (and reject-newlines (> (length splitstr) 1))
       (error "Invalid Base64 string"))
     (dolist (substr splitstr)