Skip to content

Commit

Permalink
Merge pull request PrestaShop#37167 from Prestaworks/security_improve…
Browse files Browse the repository at this point in the history
…ment

Improve security by randomizing prefix
  • Loading branch information
kpodemski authored Oct 20, 2024
2 parents ad640ad + 94ac425 commit 42b15df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install-dev/controllers/http/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public function display(): void
$this->database_login = $parameters['parameters']['database_user'];
$this->database_password = $parameters['parameters']['database_password'];
$this->database_engine = $parameters['parameters']['database_engine'];
$this->database_prefix = substr(str_shuffle(str_repeat('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', mt_rand(1,10))), 0, 5).'_';
$this->database_prefix = substr(str_shuffle(str_repeat('0123456789abcdefghijklmnopqrstuvwxyz', mt_rand(1,10))), 0, 5).'_';

$this->database_clear = true;
$this->use_smtp = false;
Expand Down

0 comments on commit 42b15df

Please sign in to comment.