Update index.php
This commit is contained in:
parent
e7f3446506
commit
ff2e437138
|
@ -11,7 +11,7 @@ if (isset($_GET['random'])) {
|
||||||
header("location: ?address=$username@$domain");
|
header("location: ?address=$username@$domain");
|
||||||
die();
|
die();
|
||||||
} elseif (!isset($_GET['address'])) {
|
} elseif (!isset($_GET['address'])) {
|
||||||
error(400, 'invalid action');
|
redirect_to_random($config['domains']);
|
||||||
} else {
|
} else {
|
||||||
// perform common validation:
|
// perform common validation:
|
||||||
$address = filter_input(INPUT_GET, 'address', FILTER_SANITIZE_EMAIL);
|
$address = filter_input(INPUT_GET, 'address', FILTER_SANITIZE_EMAIL);
|
||||||
|
@ -237,4 +237,4 @@ if (isset($_GET['random'])) {
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user