google-code-backups / xinc

Automatically exported from code.google.com/p/xinc
0 stars 0 forks source link

Failure on registering documentation (windows) #198

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Xinc 2.0.1.1

Xinc/Plugin/Repos/Documentation.php(L.130)
--
exec('xcopy /E /Y /I ' . str_replace(' ','\ ',$sourceFile) . '\*" "' . 
$targetDir . '"', $out, $res1);
--

There is a double quotation after 'str_replace' though no double quotation 
before. 

So, I added a double quotation before, then it operated well. 
--
exec('xcopy /E /Y /I "' . str_replace(' ','\ ',$sourceFile) . '\*" "' . 
$targetDir . '"', $out, $res1);
--

I checked "branches/2.1.0" was also the same. 

Original issue reported on code.google.com by bufferi...@gmail.com on 26 Jun 2009 at 1:06

GoogleCodeExporter commented 8 years ago
Should be changed to use escapeshellarg/escapeshellcmd

Original comment by opitz.al...@googlemail.com on 1 Oct 2011 at 11:21

GoogleCodeExporter commented 8 years ago

Original comment by opitz.al...@googlemail.com on 1 Oct 2011 at 11:31

GoogleCodeExporter commented 8 years ago

Original comment by opitz.al...@googlemail.com on 1 Oct 2011 at 11:33

GoogleCodeExporter commented 8 years ago

Original comment by opitz.al...@googlemail.com on 1 Oct 2011 at 11:34

GoogleCodeExporter commented 8 years ago
Fixed in svn by using escapeshellarg

Original comment by opitz.al...@googlemail.com on 1 Oct 2011 at 10:17