Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 8e42238

Browse files
committed
Alias /parameters/core to /parameters/core.ajaxplorer
1 parent 24fab5d commit 8e42238

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

core/src/plugins/access.ajxp_conf/src/PluginsManager.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,12 @@ public function pluginsActions(ServerRequestInterface $requestInterface, Respons
7272

7373
case "get_plugin_manifest" :
7474

75-
$ajxpPlugin = PluginsService::getInstance($ctx)->getPluginById($httpVars["plugin_id"]);
75+
$pluginId = InputFilter::sanitize($httpVars["plugin_id"], InputFilter::SANITIZE_ALPHANUM);
76+
if($pluginId === "core") {
77+
$pluginId = "core.ajaxplorer";
78+
}
79+
$ajxpPlugin = PluginsService::getInstance($ctx)->getPluginById($pluginId);
7680
$buffer = "<admin_data>";
77-
//XMLWriter::header("admin_data");
7881

7982
$fullManifest = $ajxpPlugin->getManifestRawContent("", "xml");
8083
$xPath = new \DOMXPath($fullManifest->ownerDocument);
@@ -201,6 +204,9 @@ public function pluginsActions(ServerRequestInterface $requestInterface, Respons
201204
$this->parseParameters($ctx, $httpVars, $options, true);
202205
$confStorage = ConfService::getConfStorageImpl();
203206
$pluginId = InputFilter::sanitize($httpVars["plugin_id"], InputFilter::SANITIZE_ALPHANUM);
207+
if($pluginId === "core") {
208+
$pluginId = "core.ajaxplorer";
209+
}
204210
list($pType, $pName) = explode(".", $pluginId);
205211
$existing = $confStorage->loadPluginConfig($pType, $pName);
206212
$this->mergeExistingParameters($options, $existing);

0 commit comments

Comments
 (0)