Another situation where autocomplete=off prevented a bug. Provisioning a devcie by adding sip registration information for device provisioning in this case autocomplete always fills in incorrect information.

This commit is contained in:
markjcrane
2015-09-19 17:59:07 -06:00
parent 6e11352ff7
commit ba83a0f99e

View File

@@ -217,6 +217,7 @@ require_once "resources/require.php";
//array cleanup
$x = 0;
unset($_POST["autocomplete"][$x]);
foreach ($_POST["device_lines"] as $row) {
//unset the empty row
if (strlen($row["line_number"]) == 0) {
@@ -502,6 +503,7 @@ require_once "resources/require.php";
<?php
//show the content
echo "<form method='post' name='frm' id='frm' action='' onsubmit='check_duplicates(); return false;'>\n";
echo "<input style='display:none;' type='password' name='autocomplete'>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td align='left' width='30%' nowrap='nowrap' valign='top'>";