Ad Widget

Collapse

PATCH: Minor Fix To Update Profile

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #1

    PATCH: Minor Fix To Update Profile

    Greetings,

    Found an ugly bug in zabbix/frontend/php/include/profiles.inc.php. Without this patch, there is a chance to overwrite all of your existing host profile entries as there is no where clause. This patch fixes the SQL update statement to only update a profile based on it's hostid by using where hostid='$hostid'. This patch can be used against 1.1beta2, CVS, and my Meta Request patch without change. Again, this patch is just a bug fix.
    Attached Files
    Unofficial Zabbix Developer
Working...