first, thank a lot for your work !
Those plugins are very usefull for me !!
I have seen a little bug in zabbix-translate.php : "global" declaration is missing, so it always call mysql_real_escape_string function even if $DB['TYPE'] == ZBX_DB_POSTGRESQL.
Sorry for not doing a pull request. I will do it for next request.
So line 180 in zabbix-translate.php :
function quotestr($p_texto) { // Função para colocar aspas com mais segurança
global $DB;
return "'".($DB['TYPE'] == ZBX_DB_POSTGRESQL ?
pg_escape_string($p_texto) :
mysql_real_escape_string($p_texto))."'";
//pg_escape_string
}
Hi,
first, thank a lot for your work ! Those plugins are very usefull for me !!
I have seen a little bug in zabbix-translate.php : "global" declaration is missing, so it always call mysql_real_escape_string function even if $DB['TYPE'] == ZBX_DB_POSTGRESQL.
Sorry for not doing a pull request. I will do it for next request.
So line 180 in zabbix-translate.php :
Best regards. Benoit