Skip to content

Commit

Permalink
Update HelpButton.php (#40270)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrammatiko authored Mar 31, 2023
1 parent b285fa6 commit 3ff8356
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions libraries/src/Toolbar/Button/HelpButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,7 @@ public function fetchButton($type = 'Help', $ref = '', $com = false, $override =
protected function _getCommand()
{
// Get Help URL
$url = Help::createUrl($this->getRef(), $this->getUseComponent(), $this->getUrl(), $this->getComponent());
$url = json_encode(htmlspecialchars($url, ENT_QUOTES), JSON_HEX_APOS);

return substr($url, 1, -1);
return Help::createUrl($this->getRef(), $this->getUseComponent(), $this->getUrl(), $this->getComponent());
}

/**
Expand Down

0 comments on commit 3ff8356

Please sign in to comment.