diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-01-31 16:09:35 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-01-31 16:09:35 +0000 |
| commit | d07f777ed2cf0103ed550166f9b0e783db064255 (patch) | |
| tree | fb331ae19aff60bdf2cea11bd99e34a99f45bc1d /frontends/php/hosts.php | |
| parent | 78776cf62621df9e12f0b791753174e638440efe (diff) | |
| download | zabbix-d07f777ed2cf0103ed550166f9b0e783db064255.tar.gz zabbix-d07f777ed2cf0103ed550166f9b0e783db064255.tar.xz zabbix-d07f777ed2cf0103ed550166f9b0e783db064255.zip | |
Getting rid of addslashes.
git-svn-id: svn://svn.zabbix.com/trunk@2592 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/hosts.php')
| -rw-r--r-- | frontends/php/hosts.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/php/hosts.php b/frontends/php/hosts.php index a022e569..cee75cbd 100644 --- a/frontends/php/hosts.php +++ b/frontends/php/hosts.php @@ -116,7 +116,7 @@ show_messages($result, $msg_ok, $msg_fail); if($result){ add_audit($audit_action,AUDIT_RESOURCE_HOST, - "Host [".addslashes($_REQUEST["host"])."] IP [".$_REQUEST["ip"]."] ". + "Host [".zbx_ads($_REQUEST["host"])."] IP [".$_REQUEST["ip"]."] ". "Status [".$_REQUEST["status"]."]"); unset($_REQUEST["form"]); @@ -135,7 +135,7 @@ if($result) { add_audit(AUDIT_ACTION_DELETE,AUDIT_RESOURCE_HOST, - "Host [".addslashes($host["host"])."]"); + "Host [".zbx_ads($host["host"])."]"); unset($_REQUEST["form"]); unset($_REQUEST["hostid"]); @@ -153,7 +153,7 @@ if(!$res) continue; $host=get_host_by_hostid($db_host["hostid"]); add_audit(AUDIT_ACTION_DELETE,AUDIT_RESOURCE_HOST, - "Host [".addslashes($host["host"])."]"); + "Host [".zbx_ads($host["host"])."]"); } show_messages($result, S_HOST_DELETED, NULL); } |
