Jump to content
Froxlor Forum
  • 0

Problem mit Bindestrichen im Domainnamen


WendeHammerZ

Question

Moin moin,

ich habe leider ein Problem mit Bindestrichen im Domainnamen.
Die Domain die ich hinzufügen möchte hat 3 Bindestriche am Stück und Froxlor meldet mir folgendes:

Quote

Die Eingabe von Punycode (IDNA) ist nicht notwendig. Die Domain wird automatisch konvertiert.

Wie kann ich die Domain trotzdem hinzufügen?

Dankeschön! :)

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

Bitte mal folgenden Patch probieren:

diff --git a/admin_domains.php b/admin_domains.php
index f2a877a..5b2b31a 100644
--- a/admin_domains.php
+++ b/admin_domains.php
@@ -306,7 +306,7 @@ if ($page == 'domains' || $page == 'overview') {
                                        standard_error('admin_domain_emailsystemhostname');
                                }
 
-                               if (strpos($_POST['domain'], '--') !== false) {
+                               if (substr($_POST['domain'], 0, 4) == 'xn--') {
                                        standard_error('domain_nopunycode');
                                }
 
diff --git a/customer_domains.php b/customer_domains.php
index 849eb69..f492ee8 100644
--- a/customer_domains.php
+++ b/customer_domains.php
@@ -260,7 +260,7 @@ if ($page == 'overview') {
                if ($userinfo['subdomains_used'] < $userinfo['subdomains'] || $userinfo['subdomains'] == '-1') {
                        if (isset($_POST['send']) && $_POST['send'] == 'send') {
 
-                               if (strpos($_POST['subdomain'], '--') !== false) {
+                               if (substr($_POST['subdomain'], 0, 4) == 'xn--') {
                                        standard_error('domain_nopunycode');
                                }

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...