Patch: Insert index_value with '. File snmp_cache_view.php

biapar

06-02-2004 07:00:10

If index_value has a ' into value, we have a db error. Then
before insert data into db, we must insert


$index_value = $r_snmp[$index_type];

//COMMAND patch
$index_value = str_replace("'", "", $index_value);

// create the subdevice
db_update("INSERT INTO sub_devices SET dev_id='$dev_id', type=2, name='$index_value'");

Bye


D

balleman

06-02-2004 10:47:35

Thanks for the report!

We've started bug#155 to track this issue.