From baf506b1ca16ff243076fb1a2ce1f8662a0f5ebc Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Sun, 29 Aug 2010 04:47:30 +0200 Subject: [PATCH] We may not actually find the end tag, so protect against that. --- lisp/gnus-html.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/gnus-html.el b/lisp/gnus-html.el index 2492545a1..5eced5f44 100644 --- a/lisp/gnus-html.el +++ b/lisp/gnus-html.el @@ -69,7 +69,7 @@ parameters (match-string 2) start (match-beginning 0)) (delete-region start (point)) - (when (search-forward (concat "")) + (when (search-forward (concat "") nil t) (delete-region (match-beginning 0) (match-end 0))) (setq end (point)) (cond -- 2.34.1