Subject: | [Bug] File::Spec::Win32 - user temporary directory not found if taint mode |
Date: | Tue, 1 Jul 2014 18:48:17 +0200 |
To: | bug-PathTools [...] rt.cpan.org |
From: | GwenDragon <info [...] gwendragon.de> |
Hello Steffen,
File::Spec::Win32 has some issues if used by other modules or programs
running in taint mode (command line switch or shebang with -T).
No temporary directory for user (may be in %LOCALAPPDATA%\TEMP on some
Windows versions) is found on taint mode.
In some cases tmpdir returns / which is not desireable.
A fix could be done in Win32.pm in method tmpdir().
The user temp path can be found in Windows by :
concat Win32::GetFolderPath(Win32::CSIDL_LOCAL_APPDATA()) and 'Temp'.
Please check my patch/module and fix the module asap if my fix is a
correct solution.
Thanks and have a nice day.
--
Regards from Franken (Germany)
GwenDragon
E-Mail: gd@gwendragon.de
Web: http://gwendragon.de/
+-----------------------------------------------------------------+
| E-Mail mit GnuPG signiert/Signed with GnuPG |
| |
| GnuPG-Signatur RSA/4096bit |
| Key-ID: 0x269218D092DD50ED |
| Fingerprint: A856 CB19 1371 BF21 E2F9 DC09 2692 18D0 92DD 50ED |
+-----------------------------------------------------------------+
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.
Message body not shown because it is not plain text.