Fix some wrong escapeshellarg() calls
Add escapeshellarg() calls on exec parameters. While I'm here, replace some exec() calls by php functions like symlink, copy, unlink, mkdir
tighten overly broad regexes for SMART monitoring
Also catch adaX Fixes #3112
Fix page name. Fixes #2813
Validate passed parameters to smart commands, and the target device. Also escape when used in shell commands even after validation.Discovered-By: Bernhard Thaler
Self-test should be hypenated, and the T should be lower case.
Use a better regex here, sometimes ad devices can be numbered >=10.
Fix XSS issues
Fix a duplicate line forgotten on a merge
Merge remote branch 'mainline/master'
Conflicts: usr/local/www/diag_smart.php usr/local/www/firewall_rules_edit.php usr/local/www/interfaces.php usr/local/www/load_balancer_pool_edit.php usr/local/www/pkg_mgr_settings.php
Fix text
Implement geettext() on diag_smart.php
Add Diagnostics > SMART Status for ATA HDDs. (Some functionality disabled, still needs hooked into notifications, and service code for smartd)