Change a POST to a GET on the advanced search for CDR.

This commit is contained in:
markjcrane 2016-02-23 18:15:07 -07:00
parent 01a9438f4e
commit 7d5382ed6d
2 changed files with 4 additions and 4 deletions

View File

@ -309,11 +309,11 @@ else {
$sql .= "rtp_audio_in_mos, ";
}
$sql .= "(answer_epoch - start_epoch) as tta ";
if ($_GET['showall'] && permission_exists('xml_cdr_all')) {
if ($_REQUEST['showall'] == "true" && permission_exists('xml_cdr_all')) {
$sql .= ", domain_name ";
}
$sql .= "from v_xml_cdr ";
if ($_GET['showall'] && permission_exists('xml_cdr_all')) {
if ($_REQUEST['showall'] == "true" && permission_exists('xml_cdr_all')) {
if ($sql_where) { $sql .= "where "; }
} else {
$sql .= "where domain_uuid = '".$domain_uuid."' ";

View File

@ -58,12 +58,12 @@ echo "</script>";
if (strlen(check_str($_GET['redirect'])) > 0) {
echo "<form method='get' action='" . $_GET['redirect'] . ".php'>\n";
} else {
echo "<form method='post' action='xml_cdr.php'>\n";
echo "<form method='get' action='xml_cdr.php'>\n";
}
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n";
echo " <tr>\n";
echo " <td width='30%' nowrap valign='top'><b>Advanced Search</b></td>\n";
echo " <td width='30%' nowrap='nowrap' valign='top'><b>Advanced Search</b></td>\n";
echo " <td width='70%' align='right' valign='top'>";
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='xml_cdr.php'\" value='Back'>";
echo " <input type='submit' name='submit' class='btn' value='Search'>";