Skip to content

Commit c16bf64

Browse files
committed
Fixed a bug where special html chars in the password were added with htmlentities
1 parent 51914a1 commit c16bf64

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Protocols/EPP/eppData/eppDomain.php

+2-7
Original file line numberDiff line numberDiff line change
@@ -331,12 +331,7 @@ public function getSecdns($row = null) {
331331
* @return void
332332
*/
333333
public function setAuthorisationCode($authorisationCode) {
334-
if ($authorisationCode) {
335-
$this->authorisationCode = htmlspecialchars($authorisationCode, ENT_COMPAT, "UTF-8");
336-
} else {
337-
$this->authorisationCode = $authorisationCode;
338-
}
339-
334+
$this->authorisationCode = $authorisationCode;
340335
}
341336

342337
/**
@@ -353,7 +348,7 @@ public function getAuthorisationCode() {
353348
* @return void
354349
*/
355350
public function setPassword($password) {
356-
$this->authorisationCode = htmlspecialchars($password, ENT_COMPAT, "UTF-8");
351+
$this->setAuthorisationCode($password);
357352
}
358353

359354
/**

0 commit comments

Comments
 (0)