diff --git a/application/views/components/appointments_modal.php b/application/views/components/appointments_modal.php
index ae5ce7ce..b72376cf 100644
--- a/application/views/components/appointments_modal.php
+++ b/application/views/components/appointments_modal.php
@@ -43,6 +43,7 @@
// Group services by category, only if there is at least one service
// with a parent category.
$has_category = FALSE;
+
foreach ($available_services as $service)
{
if ( ! empty($service['category_id']))
@@ -72,6 +73,7 @@
// We need the uncategorized services at the end of the list, so we will use
// another iteration only for the uncategorized services.
$grouped_services['uncategorized'] = [];
+
foreach ($available_services as $service)
{
if ($service['category_id'] == NULL)
@@ -83,7 +85,7 @@
foreach ($grouped_services as $key => $group)
{
$group_label = $key !== 'uncategorized'
- ? $group[0]['category_name']
+ ? e($group[0]['category_name'])
: 'Uncategorized';
if (count($group) > 0)
@@ -93,7 +95,7 @@
foreach ($group as $service)
{
echo ''
- . $service['name'] . ' ';
+ . e($service['name']) . '';
}
echo '';
@@ -105,7 +107,7 @@
foreach ($available_services as $service)
{
echo ''
- . $service['name'] . ' ';
+ . e($service['name']) . '';
}
}
?>
@@ -137,8 +139,8 @@
-
- = $appointment_status_option ?>
+
+ = e($appointment_status_option) ?>
diff --git a/application/views/components/backend_footer.php b/application/views/components/backend_footer.php
index 29ff3ced..2e4d5f77 100644
--- a/application/views/components/backend_footer.php
+++ b/application/views/components/backend_footer.php
@@ -44,7 +44,7 @@
diff --git a/application/views/components/google_analytics_script.php b/application/views/components/google_analytics_script.php
index a69b8e89..20f0c9d3 100644
--- a/application/views/components/google_analytics_script.php
+++ b/application/views/components/google_analytics_script.php
@@ -10,7 +10,7 @@
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,"script","//www.google-analytics.com/analytics.js","ga");
- ga("create", "= $google_analytics_code ?>", "auto");
+ ga("create", "= e($google_analytics_code) ?>", "auto");
ga("send", "pageview");
@@ -21,7 +21,7 @@
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag("js", new Date());
- gtag("config", "= $google_analytics_code ?>");
+ gtag("config", "= e($google_analytics_code) ?>");
diff --git a/application/views/components/matomo_analytics_script.php b/application/views/components/matomo_analytics_script.php
index d528c595..246a21ad 100644
--- a/application/views/components/matomo_analytics_script.php
+++ b/application/views/components/matomo_analytics_script.php
@@ -13,7 +13,7 @@
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function () {
- var u = "= $matomo_analytics_url ?>";
+ var u = "= e($matomo_analytics_url) ?>";
_paq.push(['setTrackerUrl', u + 'matomo.php']);
_paq.push(['setSiteId', '1']);
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
@@ -24,7 +24,7 @@
-
+
diff --git a/application/views/emails/account_recovery_email.php b/application/views/emails/account_recovery_email.php
index 3166ab85..d962bffc 100644
--- a/application/views/emails/account_recovery_email.php
+++ b/application/views/emails/account_recovery_email.php
@@ -16,7 +16,7 @@
diff --git a/application/views/emails/appointment_deleted_email.php b/application/views/emails/appointment_deleted_email.php
index 417202ce..0fc36a03 100644
--- a/application/views/emails/appointment_deleted_email.php
+++ b/application/views/emails/appointment_deleted_email.php
@@ -21,7 +21,7 @@
@@ -44,7 +44,7 @@
= lang('service') ?>
- = $service['name'] ?>
+ = e($service['name']) ?>
@@ -52,7 +52,7 @@
= lang('provider') ?>
- = $provider['first_name'] . ' ' . $provider['last_name'] ?>
+ = e($provider['first_name'] . ' ' . $provider['last_name']) ?>
@@ -87,7 +87,7 @@
= lang('location') ?>
- = $appointment['location'] ?>
+ = e($appointment['location']) ?>
@@ -98,7 +98,7 @@
= lang('notes') ?>
- = $appointment['notes'] ?>
+ = e($appointment['notes']) ?>
@@ -114,7 +114,7 @@
= lang('name') ?>
- = $customer['first_name'] . ' ' . $customer['last_name'] ?>
+ = e($customer['first_name'] . ' ' . $customer['last_name']) ?>
@@ -122,7 +122,7 @@
= lang('email') ?>
- = $customer['email'] ?>
+ = e($customer['email']) ?>
@@ -130,7 +130,7 @@
= lang('phone_number') ?>
- = $customer['phone_number'] ?>
+ = e($customer['phone_number']) ?>
@@ -138,7 +138,7 @@
= lang('address') ?>
- = $customer['address'] ?>
+ = e($customer['address']) ?>
@@ -148,7 +148,7 @@
- = $reason ?>
+ = e($reason) ?>
@@ -159,8 +159,8 @@
Easy!Appointments
|
-
- = $settings['company_name'] ?>
+
+ = e($settings['company_name']) ?>
diff --git a/application/views/emails/appointment_saved_email.php b/application/views/emails/appointment_saved_email.php
index 68272a03..58780def 100644
--- a/application/views/emails/appointment_saved_email.php
+++ b/application/views/emails/appointment_saved_email.php
@@ -25,7 +25,7 @@
@@ -48,7 +48,7 @@
= lang('service') ?>
- = $service['name'] ?>
+ = e($service['name']) ?>
@@ -56,7 +56,7 @@
= lang('provider') ?>
- = $provider['first_name'] . ' ' . $provider['last_name'] ?>
+ = e($provider['first_name'] . ' ' . $provider['last_name']) ?>
@@ -91,7 +91,7 @@
= lang('location') ?>
- = $appointment['location'] ?>
+ = e($appointment['location']) ?>
@@ -102,7 +102,7 @@
= lang('notes') ?>
- = $appointment['notes'] ?>
+ = e($appointment['notes']) ?>
@@ -118,7 +118,7 @@
= lang('name') ?>
- = $customer['first_name'] . ' ' . $customer['last_name'] ?>
+ = e($customer['first_name'] . ' ' . $customer['last_name']) ?>
@@ -126,7 +126,7 @@
= lang('email') ?>
- = $customer['email'] ?>
+ = e($customer['email']) ?>
@@ -134,7 +134,7 @@
= lang('phone_number') ?>
- = $customer['phone_number'] ?>
+ = e($customer['phone_number']) ?>
@@ -142,7 +142,7 @@
= lang('address') ?>
- = $customer['address'] ?>
+ = e($customer['address']) ?>
@@ -151,8 +151,8 @@
= lang('appointment_link_title') ?>
-
- = $appointment_link ?>
+
+ = e($appointment_link) ?>
@@ -163,8 +163,8 @@
Easy!Appointments
|
-
- = $settings['company_name'] ?>
+
+ = e($settings['company_name']) ?>