subdomain_owner_check: Allow if is already in list

Version 1.41.0


Assume: 1 - is owned by user2 2 - is already created under user1 3 - user1 is trying to create Previously, point 3 would fail because the subdomain_owner_check only found, and noted that it didn't belong to user1. With this change, an additional check is done with, starting with to see if it exists in the domains.list file of user1. If a subdomain exists in the domains.list of user1 (, then a double-subdomain ( is now allowed to be created by user1. This change is not affected with the check, when a new User is being created... which makes sense, since a new User won't yet have any domains anyway.

Try DirectAdmin with a 30-day money back guarantee!