Skip to content

Commit

Permalink
Correction to sanitize string for device object APIUserName -> APIUse…
Browse files Browse the repository at this point in the history
…rname
  • Loading branch information
wilpig committed Mar 20, 2018
1 parent 39dc1bb commit 16e531b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Device.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 16e531b

Please sign in to comment.