system_advanced_misc.php - Reboot when changing RAM disk option happens even when input validation error occurs and the change isn't saved
When checking the RAM disk option and clicking Save, the user is prompted to approve a reboot. If the input validation on the page fails, the settings are not saved, but the reboot still happens.
Easiest way to reproduce is to fill in proxy username and proxy password but leave the password confirmation box empty, then check (or uncheck) the "Use RAM Disks" box and save.
Tested on 2.3_1 and 2.3.1.