clean extension names. fixes #2042

This makes sure the provided extension ID is a valid id before
initializing it in the extension manager.
This commit is contained in:
Andreas Gohr 2017-07-05 19:46:43 +02:00
parent e0ded59cff
commit 8cec8a5474
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ class helper_plugin_extension_extension extends DokuWiki_Plugin {
* @return bool If some (local or remote) data was found
*/
public function setExtension($id) {
$id = cleanID($id);
$this->id = $id;
$this->base = $id;