From b8f30e32f519434ef0a88e338ad5e6f864777444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Sat, 9 Dec 2023 00:47:23 +0100 Subject: [PATCH] improve/replace all relative includes --- installer/index.php | 6 +++--- plugins/password/drivers/tinycp.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/installer/index.php b/installer/index.php index 83c311fca61..eb3a9b03396 100644 --- a/installer/index.php +++ b/installer/index.php @@ -140,9 +140,9 @@
    './check.php', - 2 => './config.php', - 3 => './test.php', + 1 => __DIR__ . '/check.php', + 2 => __DIR__ . '/config.php', + 3 => __DIR__ . '/test.php', ]; if (!in_array($RCI->step, array_keys($include_steps))) { diff --git a/plugins/password/drivers/tinycp.php b/plugins/password/drivers/tinycp.php index 7e1fff79950..b1f1c2d00be 100644 --- a/plugins/password/drivers/tinycp.php +++ b/plugins/password/drivers/tinycp.php @@ -30,7 +30,7 @@ class rcube_tinycp_password { public function save($currpass, $newpass, $username) { - require_once 'TinyCPConnector.php'; + require_once __DIR__ . '/TinyCPConnector.php'; $tinycp_host = rcmail::get_instance()->config->get('password_tinycp_host'); $tinycp_port = rcmail::get_instance()->config->get('password_tinycp_port');