Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
fix(availability): add ' to exceptional parameters; return `DOMAIN NA…
Browse files Browse the repository at this point in the history
…ME NOT VALID` as reason
  • Loading branch information
KaiSchwarz-cnic committed Aug 22, 2019
1 parent b6560cb commit af039cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions modules/addons/ispapidomaincheck/lib/Client/Controller.php
Expand Up @@ -203,6 +203,10 @@ public function checkdomains($vars, $smarty)
}
}
break;
case "541":
$availability = false;
$rs["REASON"][$idx] = preg_replace("/^[^;]+;/", "", $val);
break;
default:
$availability = false;
break;
Expand Down
Expand Up @@ -494,7 +494,7 @@ DomainSearch.prototype.getSearchGroups = async function (searchterm) {
// avoid duplicates
// jquery v3 provides $.escapeSelector, this can be replaced when
// WHMCS six template's dependency jquery upgrades from v1 to v3 one day :-(
const selector = row.PC.replace(/([$%&()*+,./:;<=>?@[\\\]^{|}~])/g, '\\$1')
const selector = row.PC.replace(/([$%&()*+,./:;<=>?@[\\\]^{|}~'])/g, '\\$1')
row.element = $(`#${selector}`)
if (!row.element.length) {
row.element = TPLMgr.renderAppend('#searchresults', 'resultRow', { row: row })
Expand Down

0 comments on commit af039cb

Please sign in to comment.