Permalink
Browse files

Alias /parameters/core to /parameters/core.ajaxplorer

  • Loading branch information...
1 parent 24fab5d commit 8e422386f40665f67498f2d2d677a47cdded8fac @cdujeu cdujeu committed Sep 26, 2016
Showing with 8 additions and 2 deletions.
  1. +8 −2 core/src/plugins/access.ajxp_conf/src/PluginsManager.php
@@ -72,9 +72,12 @@ public function pluginsActions(ServerRequestInterface $requestInterface, Respons
case "get_plugin_manifest" :
- $ajxpPlugin = PluginsService::getInstance($ctx)->getPluginById($httpVars["plugin_id"]);
+ $pluginId = InputFilter::sanitize($httpVars["plugin_id"], InputFilter::SANITIZE_ALPHANUM);
+ if($pluginId === "core") {
+ $pluginId = "core.ajaxplorer";
+ }
+ $ajxpPlugin = PluginsService::getInstance($ctx)->getPluginById($pluginId);
$buffer = "<admin_data>";
- //XMLWriter::header("admin_data");
$fullManifest = $ajxpPlugin->getManifestRawContent("", "xml");
$xPath = new \DOMXPath($fullManifest->ownerDocument);
@@ -201,6 +204,9 @@ public function pluginsActions(ServerRequestInterface $requestInterface, Respons
$this->parseParameters($ctx, $httpVars, $options, true);
$confStorage = ConfService::getConfStorageImpl();
$pluginId = InputFilter::sanitize($httpVars["plugin_id"], InputFilter::SANITIZE_ALPHANUM);
+ if($pluginId === "core") {
+ $pluginId = "core.ajaxplorer";
+ }
list($pType, $pName) = explode(".", $pluginId);
$existing = $confStorage->loadPluginConfig($pType, $pName);
$this->mergeExistingParameters($options, $existing);

0 comments on commit 8e42238

Please sign in to comment.