Today I ran into a situation where Webmin 1.600 deleted the wrong zone. What I did:
- two zones existed, example.com and example.net
- used "Find zones matching" to search for "example"
- two zones were listed
- right click on one and open a new tab (so they are in two different tabs)
- delete each zone
What happened was that example.com was deleted and a completely different domain was deleted. The reason is because the buttons use the index number to delete the zones, so after deleting the first zone the index number was evidently pointing to a different zone. (i.e. all the indexes after the deleted one should have decreased by one).
I'm not sure how this could be prevented except either warning the user to start over after each deletion, or a rudimentary way could be to keep track of the total number of zones and if that changed since the form was generated, error out and start again. That's not perfect of course, if someone deletes aaa.example.com and adds zzz.example.com the count will remain the same, but it could be a double check that "something changed."