[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: when a web page has src="file:///C" in it



From: jidanni@xxxxxxxxxxx said
Subject: [emacs-w3m:11023] when a web page has src="file:///C" in it
Message-ID: <87d46klo6g.fsf@xxxxxxxxxxx>
Date: Tue, 25 Aug 2009 08:41:59 +0800

> http://thepaintedtelephone.blogspot.com/2009/01/logitech-mouse-wheel.html has
> <img src="file:///C:/DOCUME%7E1/KATHYH%7E1/LOCALS%7E1/Temp/moz-screenshot-1.jpg"/>
> in it. When one presses T (w3m-toggle-inline-images) one gets
> asked for a password, or
> "Process *tramp/scp C* exited abnormally with code 255"
> This is all wrong...

OK. I fixed it on CVS HEAD with this patch,

TNX!

--- w3m.el	24 Aug 2009 03:24:44 -0000	1.1455
+++ w3m.el	25 Aug 2009 02:18:16 -0000
@@ -3824,6 +3824,8 @@
 		(when (and (w3m-url-valid iurl)
 			   (or (null safe-regexp)
 			       (string-match safe-regexp iurl))
+			   (not (and (not (w3m-url-local-p w3m-current-url))
+				     (w3m-url-local-p iurl)))
 			   (or (not w3m-current-ssl)
 			       (string-match "\\`\\(?:ht\\|f\\)tps://" iurl)
 			       allow-non-secure-images

-- 
Hideyuki SHIRAI (mailto:shirai@xxxxxxxxxxx)