Hi,
I'm currently working on deploying a mediawiki installation (IIS/W2K3/MySQL5, if it matters) for the company I work for. I've got everything pretty much done, and people are using the wiki already with positive reviews. The problem I'm having at the moment is with file storage. We don't want to upload all the files, as some files need to change regularly and be stored on a network drive.
I've gotten far enough with this using meta and mediawiki.org, and have enabled file:// links and a bunch of other stuff to make this posisble, even changing the browsers so file:// links are supported from the site. The only problem I've got left is what to do when there's a space in the file or directory name being linked to.
For example, if a file is stored in p:\docs\some user documentation.doc, I can't link to it in the wiki without setting $wgRawHtml and using the a href=... tag directly inside html tags. Not a very secure option, and also not very user-friendly. Substituting spaces for %20 doesn't work (IE renders the %20 directly for file:// links, it seems), and using [blah] doesn't work, becuase the first space gets regarded as the split between the url and the title of the link to be displayed. And an a href tag just gets ignored, despite my efforts to try and add it to the attribute whitelist.
I've been messing around for options for a few days now, and I've broken and unbroken everything a few times, by screwing with stuff like Sanitize.php, Linker.php, Parser.php, and so on. But despite being a long-term PHP developer, I can't figure this code out despite my best efforts.
So I'd like to ask the community if they have any suggestions on how I can achieve this? None of the code changes I made seemed to have any effect, so I'm at a loss as to what to do next.
Thanks everyone for your time and any assistance you can offer.
Cheers, Michael.