From 16e531be72472024ac7ee4127b0b332179f0edeb Mon Sep 17 00:00:00 2001 From: wilpig Date: Tue, 20 Mar 2018 12:56:13 -0500 Subject: [PATCH] Correction to sanitize string for device object APIUserName -> APIUsername --- classes/Device.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Device.class.php b/classes/Device.class.php index cc994bbfd..49d07dcf6 100644 --- a/classes/Device.class.php +++ b/classes/Device.class.php @@ -120,7 +120,7 @@ function MakeSafe() { $this->v3PrivPassphrase=sanitize($this->v3PrivPassphrase); $this->SNMPFailureCount=intval($this->SNMPFailureCount); $this->Hypervisor=(in_array($this->Hypervisor, $validHypervisors))?$this->Hypervisor:'None'; - $this->APIUserName=sanitize($this->APIUsername); + $this->APIUsername=sanitize($this->APIUsername); $this->APIPassword=sanitize($this->APIPassword); $this->APIPort = intval($this->APIPort); $this->ProxMoxRealm=sanitize($this->ProxMoxRealm);