xss_cleaned some more GET inputs

This commit is contained in:
github-actions
2024-08-06 13:16:20 +02:00
parent 696b79fb5a
commit fc25037cfb
2 changed files with 6 additions and 6 deletions

View File

@@ -180,8 +180,8 @@ class Lookup extends CI_Controller {
public function get_county() {
$json = [];
if(!empty($this->input->get("query"))) {
$county = $this->input->get("state");
if(!empty($this->security->xss_clean($this->input->get("query")))) {
$county = $this->security->xss_clean($this->input->get("state"));
$cleanedcounty = explode('(', $county);
$cleanedcounty = trim($cleanedcounty[0]);