#4126 edit_mon_cgi error

1.590
closed-fixed
Jamie Cameron
5
2012-08-06
2012-08-05
Rick Cooper
No

When attempting to edit a Server Status Monitoring item the following error is given
Can't use global $_ in "my" at /usr/libexec/webmin/status/edit_mon.cgi line 316, near "($_"

Now I did not look through all the code on line 316 but it looked as though it was just splitting the value after the "=" sign so I changed the line from
my ($_, $nv) = split(/=/, $nice_values[$i], 2);
TO
my ($junk, $nv) = split(/=/, $nice_values[$i], 2);

and appears to be good, I can edit and save changes and everything appears to be functioning correctly, but again I did not look past the if statement that surrounds line 316

Discussion

  • Jamie Cameron
    Jamie Cameron
    2012-08-06

    Yes, this is a known bug - there is a fix for it at http://www.webmin.com/updates.html (which is basically the same as yours)

     
  • Jamie Cameron
    Jamie Cameron
    2012-08-06

    • status: open --> closed-fixed