This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Sub-Domains name as Domian name
#11
RE: Sub-Domains name as Domian name
Ok, I did a test on my server and was able to add shared.mach-hosting.ninja after altering the code.
Reason:
The current code only allows 3 character .TLDs for domains - This needs to be changed to 13.
OPEN:

Code:
/panel/modules/domains/code/controller.ext.php

FIND: (About line 234)

Code:
if (strlen($check) > 3) {

REPLACE WITH:

Code:
if (strlen($check) > 13) {

SAVE

I will do a pull request on GitHub if this works for you so it will be solved in the next release Smile
(Will also check the sub-domains module.)
-TGates - Project Council

SEARCH the Forums or read theĀ DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by: apinto , Ron-e
#12
RE: Sub-Domains name as Domian name
It works!!!
Yes, it'll be good if you check for sub-domains too.
Nice job!
Thanks.
Reply
Thanks given by:
#13
RE: Sub-Domains name as Domian name
I did a quick look and did not see a limitation in the sub-doamins (More than likely because the domain manager is what actually checks the TLD and not the sub-domains.)
-TGates - Project Council

SEARCH the Forums or read theĀ DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Postfix relay specific domains to mailjet johnnyp 0 2 ,383 01-29-2021, 04:44 AM
Last Post: johnnyp
Disabling warning and notice logging in /var/sentora/logs/domains/* JSmith 0 2 ,782 01-02-2021, 07:50 PM
Last Post: JSmith
Add on Domains not working but Main domain works luckyviet 2 6 ,383 03-18-2020, 07:38 PM
Last Post: AanaNahum

Forum Jump:


Users browsing this thread: 1 Guest(s)