<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>RE: [pmwiki-users] Links to files on a network share not working inboth IE and Firefox</TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText78762 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Good idea, just tried it and
it didn't work. Even if it did work I suspect that this would then break
Internet Explorer.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>I've done much more debugging now and found
that this must be a security feature of Mozilla based browsers (perhaps others
as well). In the attached file you can see the error messages I am
getting. You can override the security here by doing the
following:</FONT></DIV>
<UL dir=ltr>
<LI>
<DIV><FONT face=Arial size=2>From a Mozilla-based browser enter 'about:config'
in the URL</FONT></DIV></LI>
<LI>
<DIV><FONT face=Arial size=2>Set the 'security.checkloaduri' attribute to
'false'</FONT></DIV></LI></UL>
<DIV dir=ltr><FONT face=Arial size=2>WARNING: This could leave you open to
attack by rogue web pages - a web page (well java script) could read a file
from your hard disk!</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Anyway, in our company we have _other_
security measures and are happy with this configuration internally, so the above
works for us.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Thanks for all your help Chistophe - glad I
managed to sort it in the end because this was a real pain.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>-Steve.</FONT></DIV>
<DIV dir=ltr><BR> </DIV>
<DIV dir=ltr>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr><FONT face=Tahoma size=2><B>From:</B> Christophe David
[mailto:pmwiki@christophedavid.org]<BR><B>Sent:</B> Sun 31/07/2005
20:23<BR><B>To:</B> pmwiki-users@pmichaud.com<BR><B>Cc:</B> Crisp, Steve
[UK]<BR><B>Subject:</B> RE: [pmwiki-users] Links to files on a network share not
working inboth IE and Firefox<BR></FONT><BR></DIV></DIV>
<DIV>
<P><FONT size=2>> Thanks for your reply. To answer your question, no it
does not load if I<BR>> enter it in the URL - this is the problem. What
works in Mozilla/Firefox<BR>> is "<A
href="file:///machine_name/directory_path/myfile.doc">file:///machine_name/directory_path/myfile.doc</A><BR>>
<<A
href="file:///machine_name/directory_path/myfile.doc">file:///machine_name/directory_path/myfile.doc</A>>
" i.e. three slashes then<BR>> the path.<BR><BR>You can probably use a
localmap.txt containing, for example,<BR><BR>Whatever <A
href="file:///">file:///</A><BR><BR>and then in your wiki
page,<BR><BR>Whatever:machine_name/directory_path/myfile.doc<BR><BR>This will
render as <A
href="file:///machine_name/directory_path/myfile.doc">file:///machine_name/directory_path/myfile.doc</A><BR><BR>See
<A
href="http://www.pmwiki.org/wiki/PmWiki/CustomInterMap">http://www.pmwiki.org/wiki/PmWiki/CustomInterMap</A>
for details.<BR><BR>Christophe<BR><BR></FONT></P></DIV>
</BODY>
</HTML>