Jump to content
Sign in to follow this  
datakolay

Whmcs 6.1.1 six template domainchecker.php fix

Recommended Posts

Domain sorgulama sisteminde bulunan a.in gibi tek karakterli veua 2 karakterli domainleri tescil edilebilir göstermesini engellemek amacıyla gerçekleştirilen değişikliktir.

 

Whmcs version 6.1.1 six template içerisindeki domainchecker.js içerisinde yapacağınız değişiklik

 

  // validate domain input
   if (!domainInput) {
       showDomainWarning("#searchTermRequired");
       return;
   } else if (invalidDomainCharacters.test(domainInput)) {
       showDomainWarning("#invalidChars");
       return;
   }

 

Değiştir

 

var domainInputlength = domainInput.length;  

   // validate domain input
   if (!domainInput) {
       showDomainWarning("#searchTermRequired");
       return;
   } else if (invalidDomainCharacters.test(domainInput)) {
       showDomainWarning("#invalidChars");
       return;
   } else if (domainInputlength < 3) {
       showDomainWarning("#invalidDomainError");
       return;
   }

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated