Skip to content

Commit

Permalink
fix: special chars in subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ellite committed Apr 9, 2024
1 parent fe04c0f commit fa95315
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion endpoints/subscription/get.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down
2 changes: 1 addition & 1 deletion endpoints/subscriptions/get.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion includes/inputvalidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ function validate($value) {
$value = trim($value);
$value = stripslashes($value);
$value = htmlspecialchars($value);
$value = htmlentities($value);
return $value;
}

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 = "v1.20.0";
$version = "v1.20.1";
?>

0 comments on commit fa95315

Please sign in to comment.