Skip to content

Commit

Permalink
Merge commit from fork
Browse files Browse the repository at this point in the history
Implemented output encoding via htmlentities
  • Loading branch information
tltneon authored Dec 25, 2024
2 parents 0ff5555 + ebe3891 commit 3fbd3bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lgsl_files/lgsl_details.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
</tr>";

foreach ($server['e'] as $field => $value) {
$value = preg_replace('/((https*:\/\/|https*:\/\/www\.|www\.)[\w\d\.\-\/=$?​]*)/i', "<a href='$1' target='_blank'>$1</a>", html_entity_decode($value));
$value = preg_replace('/((https*:\/\/|https*:\/\/www\.|www\.)[\w\d\.\-\/=$?​]*)/i', "<a href='$1' target='_blank'>$1</a>", htmlentities($value, ENT_QUOTES, 'UTF-8'));
$output .= "
<tr><td> {$field} </td><td> {$value} </td></tr>";
}
Expand Down

0 comments on commit 3fbd3bb

Please sign in to comment.