Skip to content

Commit b93147b

Browse files
committed
Escaped settings before display
1 parent ad27a31 commit b93147b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config_translations.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ function printProjectCard($project_info) {
8181
?>
8282
<div class='card'>
8383
<div class='card-title m-3'>
84-
<h3 class='pb-1'><span class='server-type'><?= ucfirst($project_info['server-type']); ?></span> Project <?= $project_info['project-index'] . ': ' . $project_info["{$settings_prefix}project-name"] ?></h3>
85-
<span>Server URL: </span><b><span class='server-url'><?= $project_info['url'] ?></span></b>
86-
<span class='project-api-key'><?= $project_info['api-key'] ?></span>
84+
<h3 class='pb-1'><span class='server-type'><?= ucfirst($project_info['server-type']); ?></span> Project <?= $project_info['project-index'] . ': ' . htmlspecialchars($project_info["{$settings_prefix}project-name"], ENT_QUOTES) ?></h3>
85+
<span>Server URL: </span><b><span class='server-url'><?= htmlspecialchars($project_info['url'], ENT_QUOTES) ?></span></b>
86+
<span class='project-api-key'><?= htmlspecialchars($project_info['api-key'], ENT_QUOTES) ?></span>
8787
</div>
8888
<div class='loader-container'><div class='loader'></div></div>
8989
<?php

0 commit comments

Comments
 (0)