You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fixed domain name validation regex in `scripts/functions/vhost/vhost-install.sh` to require a minimum of 2 characters by changing `^[a-z0-9]([a-z0-9-]*[a-z0-9])?$` to `^[a-z0-9][a-z0-9-]*[a-z0-9]$`, preventing single-character domain names.
12
+
- Expanded the multi-part TLD list in `scripts/functions/vhost/vhost-install.sh` to include common public suffixes: `co.jp`, `com.au`, `co.nz`, `com.sg`, `com.my`, `com.br`, `com.mx`, `co.za`, `com.tr`, `com.hk`, making the TLD selection consistent and comprehensive.
- Added error handling for all MariaDB operations in `scripts/functions/vhost/vhost-install.sh`; each `CREATE DATABASE`, `CREATE USER`, and `GRANT` command now exits with a descriptive error message if it fails, preventing broken installations from continuing silently.
15
+
- Removed the critical security risk of `GRANT ALL ON mysql.*` to the WordPress application user in `scripts/functions/vhost/vhost-install.sh`; the application user now only has privileges on its own database.
0 commit comments