diff --git a/app/devices/device_profiles.php b/app/devices/device_profiles.php
index 9fff3d9eae..ecb289d922 100644
--- a/app/devices/device_profiles.php
+++ b/app/devices/device_profiles.php
@@ -114,7 +114,7 @@
echo "
\n";
echo " \n";
echo " | \n";
@@ -136,20 +136,20 @@
if (is_array($device_profiles)) {
foreach($device_profiles as $row) {
- $tr_link = (permission_exists('device_profile_edit')) ? "href='device_profile_edit.php?id=".$row['device_profile_uuid']."'" : null;
+ $tr_link = (permission_exists('device_profile_edit')) ? "href='device_profile_edit.php?id=".escape($row['device_profile_uuid'])."'" : null;
echo "\n";
echo " | ";
- echo (permission_exists('device_profile_edit')) ? "".$row['device_profile_name']."" : $row['device_profile_name'];
+ echo (permission_exists('device_profile_edit')) ? "".escape($row['device_profile_name'])."" : escape($row['device_profile_name']);
echo ($row['domain_uuid'] == '') ? " ".$text['select-global']."" : null;
echo " | \n";
- echo " ".$text['label-'.$row['device_profile_enabled']]." | \n";
- echo " ".$row['device_profile_description']." | \n";
+ echo " ".$text['label-'.escape($row['device_profile_enabled'])]." | \n";
+ echo " ".escape($row['device_profile_description'])." | \n";
echo " ";
if (permission_exists('device_profile_edit')) {
- echo "".$v_link_label_edit."";
+ echo "".$v_link_label_edit."";
}
if (permission_exists('device_profile_delete')) {
- echo "".$v_link_label_delete."";
+ echo "".$v_link_label_delete."";
}
echo " | \n";
echo "
\n";