Update index.php

This commit is contained in:
Aravindo Wingeier 2018-01-09 14:17:02 +01:00 committed by GitHub
parent e7f3446506
commit ff2e437138
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>