Fixing bug with & in name of DXCC

An & in the name of a DXCC causes the webserver to ERROR 500.
This commit is contained in:
Kim - DG9VH 2019-06-12 20:01:59 +02:00 committed by GitHub
parent 1fa21fc245
commit 9153b18d06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@
if ($count == 0){
print("<td>&nbsp;</td>");
}else{
printf("<td><a href='dxcc_details?Country=\"%s\"&Band=\"%s\"'>%d</a></td>", $country, $band, $count);
printf("<td><a href='dxcc_details?Country=\"%s\"&Band=\"%s\"'>%d</a></td>", str_replace("&", "%26", $country), $band, $count);
}
}
print("</tr>");