# HG changeset patch # User Matti Hamalainen # Date 1485269070 -7200 # Node ID 50d005dd22d84462332d1709f467434878ffb2af # Parent 2d7d5940ec4794d932167c2cbccf8432c1a0caf2# Parent 82ecea33c4770f5f47c371482c9be4b7fffda033 Merged. diff -r 82ecea33c477 -r 50d005dd22d8 faptool.php --- a/faptool.php Tue Jan 24 16:43:58 2017 +0200 +++ b/faptool.php Tue Jan 24 16:44:30 2017 +0200 @@ -534,7 +534,7 @@ } $sbinfo[] = ""; - + $sbinfoStr = implode("\n", $sbinfo); // Create the destination directory if (wtMakeDir(stMakePath(FALSE, FALSE, array($pathPrefix, $compo["cpath"])), 0755) === false) @@ -585,7 +585,7 @@ } $dstFilename = stMakePath(FALSE, FALSE, array($dstPath, "fapinfo.txt")); - if (@file_put_contents($dstFilename, implode("\r\n", $sbinfo)) === FALSE) + if (@file_put_contents($dstFilename, $sbinfoStr) === FALSE) { echo "ERROR: Failed to output '".$dstFilename."'\n"; return FALSE;