[Pmwiki-users] Spaces in file names

Dave Noonan PmWiki
Sat Feb 28 08:50:25 CST 2004


Patrick R. Michaud wrote:

> On Sat, Feb 28, 2004 at 08:26:34AM -0700, Patrick R. Michaud wrote:
> 
>>Okay, try this in your config.php:
>>    $LinkPatterns[300]['\\bfile:".*?"'] = 'FmtSpacedUrlLink';
>>    [...]
>>This allows markup of the form 
>>   file:"\\server\some dir\some other dir\pain in the butt.xls" 
> 
> 
> I should note that this also allows some completely invalid URLs,
> such as things containing single quotes and braces and angle brackets
> and the like (from the very permissive '.*?' in the pattern).  But
> this seemed reasonable enough for this application.  If we need the
> more restrictive pattern again, let me know.

	Thanks much Patrick.  I'll try it out Monday and let you know how it 
goes.  It's possible one of my users would enter an invalid URL but I 
can barely get them to edit a page so I don't think there's much chance 
of that. :-)
-- 
Dave
-----------------------
No man's life, liberty, or property is safe while the legislature is in 
session.
~ Judge Gideon J. Tucker, 1866.




More information about the pmwiki-users mailing list