Skip to content

Commit

Permalink
fixed overwritten email generation words. closes #65
Browse files Browse the repository at this point in the history
  • Loading branch information
geek-at committed Nov 23, 2023
1 parent 85f7b30 commit 41310e0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions web/inc/core.php
Expand Up @@ -268,10 +268,7 @@ function generateRandomEmail()
$settings = loadSettings();
$domains = explode(',', $settings['DOMAINS']);
$dom = $domains[array_rand($domains)];

$adjectives = ['happy', 'sleepy', 'grumpy', 'dopey', 'sneezy', 'bashful', 'doc'];
$nouns = ['apple', 'banana', 'cherry', 'date', 'elderberry', 'fig', 'grape'];


$dom = str_replace('*', $nouns[array_rand($nouns)], $dom);
while (strpos($dom, '*') !== false) {
$dom = str_replace('*', $nouns[array_rand($nouns)], $dom);
Expand Down

0 comments on commit 41310e0

Please sign in to comment.