[pmwiki-users] Using links to like this in markup file:\\machine_name\dir\file.doc
Patrick R. Michaud
pmichaud at pobox.com
Tue Nov 22 08:11:29 CST 2005
On Tue, Nov 22, 2005 at 01:50:14PM -0000, Crisp, Steve [UK] wrote:
> Problem: I've noticed that a lot of references files on our central file
> server are being entered in markup as file:\\machine_name\dir\file.doc
> (long UNC's) instead of file://///machine_name/dir/file.doc. This works
> great for IE but not Firefox.
> Requirements: I would prefer to alter PmWiki to rewrite the internet
> compliant URL (file:////...) when it is displayed in browsers. Ideally
> this would not alter the original (incorrect mark-up) simply allow file
> links to work in IE and FireFox.
> Question: Is this possible? If so, how can this be achieved? I'm using
Try adding the following to local/config.php:
"str_replace('\\\\\', '/', PSS('file:////$1'))");
Demonstrated at http://www.pmwiki.org/wiki/Test/FileUrls.
More information about the pmwiki-users