diff --git a/app/number_translations/number_translations.php b/app/number_translations/number_translations.php index 82b4a90faa..0047eb788d 100644 --- a/app/number_translations/number_translations.php +++ b/app/number_translations/number_translations.php @@ -13,7 +13,7 @@ The Original Code is FusionPBX The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2017 + Portions created by the Initial Developer are Copyright (C) 2017-2018 the Initial Developer. All Rights Reserved. */ @@ -123,8 +123,8 @@ echo " function checkbox_toggle(item) {\n"; echo " var inputs = document.getElementsByTagName(\"input\");\n"; echo " for (var i = 0, max = inputs.length; i < max; i++) {\n"; - echo " if (inputs[i].type === 'checkbox') {\n"; - echo " if (document.getElementById('checkbox_all').checked == true) {\n"; + echo " if (inputs[i].type === 'checkbox') {\n"; + echo " if (document.getElementById('checkbox_all').checked == true) {\n"; echo " inputs[i].checked = true;\n"; echo " }\n"; echo " else {\n"; @@ -141,7 +141,7 @@ echo " ".$text['title-number_translations']."\n"; echo "
\n"; echo " \n"; - echo " \n"; + echo " \n"; echo " \n"; echo " \n"; echo "
\n"; @@ -176,19 +176,19 @@ $x = 0; foreach($result as $row) { if (permission_exists('number_translation_edit')) { - $tr_link = "href='number_translation_edit.php?id=".$row['number_translation_uuid']."'"; + $tr_link = "href='number_translation_edit.php?id=".escape($row['number_translation_uuid'])."'"; } echo "\n"; echo " \n"; echo " \n"; - echo " \n"; + echo " \n"; echo " \n"; echo " ".escape($row['number_translation_name'])." \n"; echo " ".escape($row['number_translation_enabled'])." \n"; echo " ".escape($row['number_translation_description'])." \n"; echo " "; if (permission_exists('number_translation_edit')) { - echo "$v_link_label_edit"; + echo "$v_link_label_edit"; } if (permission_exists('number_translation_delete')) { echo "";