The plugin manager plugin fails to download tgz files on Windows. My "Dokuwiki on a Stick" running on Vista handles download of zipped files but not tgz. Problem exist with 2008-05-05, 2009-02-14 and devel (2009-04-28)
The temporary directory created with io_mktmpdir() by the plugin plugin looks like
C:\DokuWikiStick5\dokuwiki\data\tmp985d8141502b0a947c95df8889c43ead
the problem is that somewhere around row 825 in TarLib.class.php (function _extractList) the path is adjusted
if (!$p_to || ($p_to[0]!="/"&&substr($p_to,0,3)!="../"&&substr($p_to,1,3)!=":\\")) /*" // <- PHP Coder bug */
$p_to = "./$p_to";
now we get ./C:\DokuWikiStick5\dokuwiki\data\tmp985d8141502b0a947c95df8889c43ead
and function fails. Between 2008-05-05 and later releases there has been a change from
substr($p_to,1,3)!=":\\" to substr($p_to,1,2)!=":\\" which doesn't solve my Windows problem. My suggestion is
if (!$p_to || ($p_to[0]!="/"&&substr($p_to,0,3)!="../"&&substr($p_to,1,3)!=":\\"&&substr($p_to,1,2)!=":/")) /*" // <- PHP Coder bug */
Patch attached
See also: forum
http://forum.dokuwiki.org/thread/2681