Skip to content

Commit

Permalink
Fixed a bug where special html chars in the password were added with …
Browse files Browse the repository at this point in the history
…htmlentities
  • Loading branch information
metaregistrar committed Jul 30, 2019
1 parent 51914a1 commit c16bf64
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Protocols/EPP/eppData/eppDomain.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,12 +331,7 @@ public function getSecdns($row = null) {
* @return void
*/
public function setAuthorisationCode($authorisationCode) {
if ($authorisationCode) {
$this->authorisationCode = htmlspecialchars($authorisationCode, ENT_COMPAT, "UTF-8");
} else {
$this->authorisationCode = $authorisationCode;
}

$this->authorisationCode = $authorisationCode;
}

/**
Expand All @@ -353,7 +348,7 @@ public function getAuthorisationCode() {
* @return void
*/
public function setPassword($password) {
$this->authorisationCode = htmlspecialchars($password, ENT_COMPAT, "UTF-8");
$this->setAuthorisationCode($password);
}

/**
Expand Down

0 comments on commit c16bf64

Please sign in to comment.