From a844328da3ff7d4d7033bacec6fa144f8652dd33 Mon Sep 17 00:00:00 2001 From: billz Date: Sat, 11 Oct 2025 00:45:21 -0700 Subject: [PATCH] php7.4 compatibility: str_starts_with -> strncmp --- src/RaspAP/Plugins/PluginInstaller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RaspAP/Plugins/PluginInstaller.php b/src/RaspAP/Plugins/PluginInstaller.php index df208058..c8ad8a6f 100644 --- a/src/RaspAP/Plugins/PluginInstaller.php +++ b/src/RaspAP/Plugins/PluginInstaller.php @@ -369,7 +369,7 @@ class PluginInstaller $source = escapeshellarg($pluginDir . DIRECTORY_SEPARATOR . $config['source']); $destination = $config['destination']; - if (!str_starts_with($destination, '/')) { + if (strncmp($destination, '/', 1) !== 0) { $destination = $this->rootPath . '/' . ltrim($destination, '/'); } $destination = escapeshellarg($destination);