Skip to content

Commit

Permalink
Merge branch 'master' into 3.next
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jul 26, 2016
2 parents 84a59df + a4564cc commit 641ef44
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .htaccess
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Uncomment the following to prevent the httpoxy vulnerability
# See: https://httpoxy.org/
#<IfModule mod_headers.c>
# RequestHeader unset Proxy
#</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
</IfModule>
3 changes: 2 additions & 1 deletion src/Console/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
namespace App\Console;

use Cake\Utility\Security;
use Composer\Script\Event;
use Exception;

Expand Down Expand Up @@ -174,7 +175,7 @@ public static function setSecuritySalt($dir, $io)
$config = $dir . '/config/app.php';
$content = file_get_contents($config);

$newKey = hash('sha256', $dir . php_uname() . microtime(true));
$newKey = hash('sha256', Security::randomBytes(64));
$content = str_replace('__SALT__', $newKey, $content, $count);

if ($count == 0) {
Expand Down

0 comments on commit 641ef44

Please sign in to comment.