lists.netmrg.net lists.netmrg.net
NetMRG discussion and support
 
FAQ :: Search :: Memberlist :: Usergroups :: Register
Profile :: Log in to check your private messages :: Log in

Patch: Insert index_value with '. File snmp_cache_view.php

 
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Development
Author Message
biapar
Beginner


Joined: 06 Feb 2004
Posts: 6

PostPosted: Fri Feb 06, 2004 12:00 pm    Post subject: Patch: Insert index_value with '. File snmp_cache_view.php Reply with quote

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
Back to top
balleman
Site Admin


Joined: 20 Jan 2003
Posts: 282

PostPosted: Fri Feb 06, 2004 3:47 pm    Post subject: Reply with quote

Thanks for the report!

We've started bug#155 to track this issue.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Development All times are GMT
Page 1 of 1

 



smartBlue Style © 2002 Smartor
Powered by phpBB © 2001, 2002 phpBB Group