fix: special chars in subscriptions (#271)

This commit is contained in:
Miguel Ribeiro 2024-04-09 22:38:06 +02:00 committed by GitHub
parent fe04c0f5c9
commit 2683a7c4ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 3 additions and 4 deletions

View File

@ -13,7 +13,7 @@
if ($row = $result->fetchArray(SQLITE3_ASSOC)) {
$subscriptionData['id'] = $subscriptionId;
$subscriptionData['name'] = $row['name'];
$subscriptionData['name'] = htmlspecialchars_decode($row['name']);
$subscriptionData['logo'] = $row['logo'];
$subscriptionData['price'] = $row['price'];
$subscriptionData['currency_id'] = $row['currency_id'];

View File

@ -68,7 +68,7 @@
$id = $subscription['id'];
$print[$id]['id'] = $id;
$print[$id]['logo'] = $subscription['logo'] != "" ? "images/uploads/logos/".$subscription['logo'] : $defaultLogo;
$print[$id]['name']= $subscription['name'];
$print[$id]['name'] = htmlspecialchars_decode($subscription['name']);
$cycle = $subscription['cycle'];
$frequency = $subscription['frequency'];
$print[$id]['billing_cycle'] = getBillingCycle($cycle, $frequency, $i18n);

View File

@ -4,7 +4,6 @@ function validate($value) {
$value = trim($value);
$value = stripslashes($value);
$value = htmlspecialchars($value);
$value = htmlentities($value);
return $value;
}

View File

@ -1,3 +1,3 @@
<?php
$version = "v1.20.0";
$version = "v1.20.1";
?>