Skip to content

Commit

Permalink
add explaining commecnts to html decode
Browse files Browse the repository at this point in the history
  • Loading branch information
Rasmus Schmidt committed Aug 13, 2024
1 parent bdc511a commit 2c939aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Classes/Fusion/ConvertEmailLinksImplementation.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public function convertLinkName(array $matches)
*/
public function convertMailLink($matches)
{
// make sure that URL parameter dividers (`&`) are not encoded
$email = html_entity_decode(trim($matches[2]), ENT_QUOTES | ENT_HTML5);
$replacedHrefContent = $this->mailToHrefConverter->convert($email);

Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "A email address and link obfuscation plugin for Neos CMS",
"require": {
"php": ">=7.1",
"neos/neos": "^3.0 || ^4.0 || ^5.0 || ^7.0 || ^8.0"
"neos/neos": "^3.0 || ^4.0 || ^5.0 || ^7.0 || ^8.0",
"guzzlehttp/guzzle": "*"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 2c939aa

Please sign in to comment.