From 3130c08c756922c02fd2c14e8292f2d3989104a4 Mon Sep 17 00:00:00 2001 From: plegall Date: Sun, 17 Jan 2021 20:00:27 +0100 Subject: [PATCH] less greedy regexp selector, to detect piwigo-videojs settings page --- admin/plugins_installed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/plugins_installed.php b/admin/plugins_installed.php index 75490e538..4a4332741 100644 --- a/admin/plugins_installed.php +++ b/admin/plugins_installed.php @@ -93,7 +93,7 @@ foreach ($plugin_menu_links_deprec as $value) { if (preg_match('/^admin\.php\?page=plugin-(.*)$/', $value["URL"], $matches)) { $settings_url_for_plugin_deprec[$matches[1]] = $value["URL"]; - } elseif (preg_match('/^.*section=(.*)[\/&%].*$/', $value["URL"], $matches)) { + } elseif (preg_match('/^.*section=(.*?)[\/&%].*$/', $value["URL"], $matches)) { $settings_url_for_plugin_deprec[$matches[1]] = $value["URL"]; } }