diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-22 14:27:27 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-22 14:27:27 +0200 |
| commit | 1dff4281426b26be03e0346c1722b1d58ab2f3ef (patch) | |
| tree | cdaf815f617bd38dd5351e3feb46d4947362cf62 /static/api | |
| parent | 7f501986d4417616484e9f901393df5efc18941e (diff) | |
| download | danixxyz-1dff4281426b26be03e0346c1722b1d58ab2f3ef.tar.gz danixxyz-1dff4281426b26be03e0346c1722b1d58ab2f3ef.zip | |
fix: correct dirname depth to 2 for /var/www/mail-config.phprelease_22042026-1427
Diffstat (limited to 'static/api')
| -rw-r--r-- | static/api/contact.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/static/api/contact.php b/static/api/contact.php index 842ccdb..d8f2239 100644 --- a/static/api/contact.php +++ b/static/api/contact.php @@ -33,7 +33,7 @@ const RATE_DIR = '/var/lib/danixxyz/cf_rate'; // owned by www-data:www-dat // 'smtp_pass' => getenv('MAIL_SMTP_PASS') ?: '', // ]; -$cfg = require dirname(__DIR__, 3) . '/mail-config.php'; +$cfg = require dirname(__DIR__, 2) . '/mail-config.php'; if ($cfg['recipient'] === '' || $cfg['smtp_host'] === '' || $cfg['smtp_user'] === '') { out(500, 'Mail not configured'); |
