# Only do remote file:// and local file:/ links. No file:///c|/windows. if ($name =~ m'^file://?[^/]') { ##Patch return ("<a href=\"$name\">$name</a>", $punct); }
How do you use the file:/ or file:// link? I have tried without luck. Thanks in advance for the help. -- DavidCollantes
I actually don't know how widespread the usefulness of this patch can be. Usually when you want to access documents not sitting in the httpd section of a web server, you use file://. On windows you use file:/// for local files. But now I've encountered file:/ on a CD-ROM under Linux. And I wanted to index and comment those links. If you want to see if this change is valuable for you, you can link to local html files on your machine and copy them to your wiki. But I'd not enable this in public wikis... ;-) --DavidAndel
It's actually file:///usr/local/files. The protocol prefix is file://. file:/usr/local/files is meaningless, just as http:/usr/local/files is meaningless (except in IE).