Subject: | GraphViz does not work in Taint-Mode |
Date: | Fri, 8 Jan 2010 11:02:44 +0100 |
To: | bug-GraphViz [...] rt.cpan.org |
From: | Rainer Hungershausen <hungershausen [...] defcon-x.de> |
Hello,
the fine GraphViz.pm doesn't work when using it in a software that relies on the taint mode.
[Fri Jan 08 10:44:55 2010] [error] Insecure $ENV{PATH} while running with -T switch at /opt/command/lib/thirdparty/lib/IPC/Run.pm line 1272.\n at /opt/command/lib/thirdparty/lib/GraphViz.pm line 1195\n
The fix is rather simple:
Instead of using the PATH variable from the system, write your own PATH before executing the run command.
$ENV{PATH}='/usr/bin';
/usr/bin works fine for me, but some users might have the binary in other places...
Best regards,
Rainer Hungershausen