Skip to content

Commit

Permalink
Fixed #6 . Thanks to @hackerkok .
Browse files Browse the repository at this point in the history
  • Loading branch information
SiavashBamshadnia committed Aug 15, 2020
1 parent abd1397 commit 71d0f46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SourceEncryptCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ private static function encryptFile($filePath, $destination, $keyLength)
}
/*$cipher = bolt_encrypt('?> ' . $fileContents, $key);*/
$cipher = bolt_encrypt($fileContents, $key);
File::isDirectory(dirname("$destination/$filePath")) or File::makeDirectory(dirname("$destination/$filePath"), 0755, true, true);
File::put(base_path("$destination/$filePath"), $prepend.$cipher);

unset($cipher);
Expand Down

0 comments on commit 71d0f46

Please sign in to comment.