summaryrefslogtreecommitdiff
path: root/includes/account.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/account.php')
-rw-r--r--includes/account.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/includes/account.php b/includes/account.php
index b1ab984..5d45602 100644
--- a/includes/account.php
+++ b/includes/account.php
@@ -535,6 +535,13 @@ function buildSubjectFromSession() {
exit;
}
+ if(!isValidWildcard($_REQUEST['newdomain']) || strstr($_REQUEST['newdomain'],"*") !== false) {
+ showheader(_("My CAcert.org Account!"));
+ echo _("Your domain is not valid.");
+ showfooter();
+ exit;
+ }
+
list($newdomain) = explode(" ", $_REQUEST['newdomain'], 2); // Ignore the rest
while($newdomain['0'] == '-')
$newdomain = substr($newdomain, 1);