summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Setup.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/private/Setup.php b/lib/private/Setup.php
index 9346edd8363..e9719705fcd 100644
--- a/lib/private/Setup.php
+++ b/lib/private/Setup.php
@@ -416,12 +416,7 @@ class Setup {
// Set email for admin
if (!empty($options['adminemail'])) {
- $adminEmail = htmlspecialchars_decode($options['adminemail']);
- if (filter_var($adminEmail, FILTER_VALIDATE_EMAIL)) {
- $config->setUserValue($user->getUID(), 'settings', 'email', $adminEmail);
- } else {
- $error[] = "Invalid e-mail-address <$adminEmail> for <$username>.";
- }
+ $config->setUserValue($user->getUID(), 'settings', 'email', $options['adminemail']);
}
}