Update contact_urls.php

This commit is contained in:
FusionPBX
2019-08-12 20:30:28 -06:00
committed by GitHub
parent d25a013f8a
commit 69669f3e31

View File

@@ -38,6 +38,11 @@
exit; exit;
} }
//set the uuid
if (is_uuid($_GET['id'])) {
$contact_uuid = $_GET['id'];
}
//show the content //show the content
echo "<table width='100%' border='0'>\n"; echo "<table width='100%' border='0'>\n";
echo "<tr>\n"; echo "<tr>\n";
@@ -69,7 +74,7 @@
echo "<th>".$text['label-url_description']."</th>\n"; echo "<th>".$text['label-url_description']."</th>\n";
echo "<td class='list_control_icons'>"; echo "<td class='list_control_icons'>";
if (permission_exists('contact_url_add')) { if (permission_exists('contact_url_add')) {
echo "<a href='contact_url_edit.php?contact_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>"; echo "<a href='contact_url_edit.php?contact_uuid=".urlencode($contact_uuid)."' alt='".$text['button-add']."'>$v_link_label_add</a>";
} }
echo "</td>\n"; echo "</td>\n";
echo "</tr>\n"; echo "</tr>\n";