Gossamer Forum
Home : Products : Others : Fileman :

[2.1.0] $UNSAFE_PATH regex in FileMan.pm

Quote Reply
[2.1.0] $UNSAFE_PATH regex in FileMan.pm
In FileMan.pm you have this bit of code:

Code:
$UNSAFE_PATH = $^O =~ /mswin/i ? '(^|[/\\\\])..?($|[/\\\\])' : '(^|/)..?($|/)';

Should the dots not be escaped?

Code:
$UNSAFE_PATH = $^O =~ /mswin/i ? '(^|[/\\\\])\.\.?($|[/\\\\])' : '(^|/)\.\.?($|/)';

I'm having problems accessing directories with one and two character names without escaping the dots.

~Charlie

Last edited by:

Chaz: May 11, 2004, 10:39 AM
Quote Reply
Re: [Chaz] [2.1.0] $UNSAFE_PATH regex in FileMan.pm In reply to
Hi,

Thanks, you are correct. We'll fix this up in the next release.

Cheers,

Alex
--
Gossamer Threads Inc.