Skip to content

Commit

Permalink
Do not modify URL
Browse files Browse the repository at this point in the history
  • Loading branch information
zoglo committed Apr 11, 2024
1 parent 1138cdb commit 32df3a1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Controller/FrontendModule/MemberExtensionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,7 @@ protected function parseMemberDetails(&$arrFields, $field, $value): void
{
switch ($rgxp) {
case HttpUrlListener::RGXP_NAME:
$strUrl = $value;

if (strncmp($value, 'http://', 7) !== 0 || strncmp($value, 'https://', 8) !== 0) {
$strUrl = 'https://' . $value;
}

$strReturn .= '<a href="' . $strUrl . '" title="' . $value . '" target="blank noopener" rel="noreferer">' . $value . '</a>';
$strReturn .= '<a href="' . $value . '" title="' . $value . '" target="blank noopener" rel="noreferer">' . $value . '</a>';
break;

case 'phone':
Expand Down

0 comments on commit 32df3a1

Please sign in to comment.