Skip to content

Commit

Permalink
fix: xss issue on the dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Ribeiro committed Oct 11, 2024
1 parent 035322d commit 598a12a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class="fa-solid fa-chevron-right"></i></button>
if (date('d', $date) == $day) {
?>
<div class="calendar-subscription-title" onClick="openSubscriptionModal(<?= $subscription['id'] ?>)">
<?= htmlspecialchars($subscription['name']) ?>
<?= $subscription['name'] ?>
</div>
<?php
}
Expand Down
6 changes: 3 additions & 3 deletions endpoints/subscriptions/get.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
$id = $subscription['id'];
$print[$id]['id'] = $id;
$print[$id]['logo'] = $subscription['logo'] != "" ? "images/uploads/logos/" . $subscription['logo'] : "";
$print[$id]['name'] = htmlspecialchars_decode($subscription['name'] ?? "");
$print[$id]['name'] = $subscription['name'] ?? "";
$cycle = $subscription['cycle'];
$frequency = $subscription['frequency'];
$print[$id]['billing_cycle'] = getBillingCycle($cycle, $frequency, $i18n);
Expand All @@ -164,8 +164,8 @@
$print[$id]['payer_user_id'] = $subscription['payer_user_id'];
$print[$id]['price'] = floatval($subscription['price']);
$print[$id]['inactive'] = $subscription['inactive'];
$print[$id]['url'] = htmlspecialchars_decode($subscription['url'] ?? "");
$print[$id]['notes'] = htmlspecialchars_decode($subscription['notes'] ?? "");
$print[$id]['url'] = $subscription['url'] ?? "";
$print[$id]['notes'] = $subscription['notes'] ?? "";

if (isset($settings['convertCurrency']) && $settings['convertCurrency'] === 'true' && $currencyId != $mainCurrencyId) {
$print[$id]['price'] = getPriceConverted($print[$id]['price'], $currencyId, $db);
Expand Down
2 changes: 1 addition & 1 deletion includes/version.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php
$version = "v2.29.0";
$version = "v2.29.2";
?>

0 comments on commit 598a12a

Please sign in to comment.