in reply to Re^2: File::Find untaint in taint-mode under Win32
in thread File::Find untaint in taint-mode under Win32

In the context of your answer the untaint_pattern should probably be:
untaint_pattern => qr|^([-+@\w./:]+)$|
Or to allow for Windows style directory separators as well (is that necessary?) something like:
untaint_pattern => qr|^([-+@\w./:\\]+)$|
Anyone see any omissions or gotchas here for Windows or other platforms?

--
John.

Replies are listed 'Best First'.
Re^4: File::Find untaint in taint-mode under Win32
by Anonymous Monk on May 09, 2011 at 14:39 UTC
    I don't understand the purpose, why not /(.*)/ ?
      I don't know.

      A similar regex is used on Mac OS according to the docs:

      The default untaint_pattern ... on Mac OS is set to qr|^(.+)$|

      --
      John.