X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Fmm-url.el;h=bcbc6d2c374bfa1c5b7a06b44de2bad233a0f8b8;hb=348ca824b5116f395afc7d69321c3cedf60b0d3f;hp=9f9c56069b95fa59a3f571944b70833d8fc2a89f;hpb=759af2e28f6c2da88c537d7346951bbfaea6c42a;p=elisp%2Fgnus.git- diff --git a/lisp/mm-url.el b/lisp/mm-url.el index 9f9c560..bcbc6d2 100644 --- a/lisp/mm-url.el +++ b/lisp/mm-url.el @@ -64,7 +64,7 @@ '((wget "wget" "--user-agent=mm-url" "-q" "-O" "-") (w3m "w3m" "-dump_source") (lynx "lynx" "-source") - (curl "curl" "--silent"))) + (curl "curl" "--silent" "--user-agent mm-url" "--location"))) (defcustom mm-url-program (cond @@ -365,7 +365,7 @@ If FOLLOW-REFRESH is non-nil, redirect refresh url in META." (defun mm-url-decode-entities () "Decode all HTML entities." (goto-char (point-min)) - (while (re-search-forward "&\\(#[0-9]+\\|[a-z]+\\);" nil t) + (while (re-search-forward "&\\(#[0-9]+\\|[a-z]+[0-9]*\\);" nil t) (let ((elem (if (eq (aref (match-string 1) 0) ?\#) (let ((c (string-to-number (substring