diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-11-08 11:25:25 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-11-08 11:25:25 +0000 |
commit | 6e582ed6c46a23140460648d5496bbf759a44914 (patch) | |
tree | 5bc67754a6a8bf98352a69b4e22591be12b11bf1 /sonar-server | |
parent | a63e179df85ab27ef18ac4623853b06d3c4f8ed2 (diff) | |
download | sonarqube-6e582ed6c46a23140460648d5496bbf759a44914.tar.gz sonarqube-6e582ed6c46a23140460648d5496bbf759a44914.zip |
SONAR-1879 Plugin keys must only contain letters and digits
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/java/org/sonar/server/plugins/PluginDeployer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/java/org/sonar/server/plugins/PluginDeployer.java b/sonar-server/src/main/java/org/sonar/server/plugins/PluginDeployer.java index afe8c52387b..b78b00cdea2 100644 --- a/sonar-server/src/main/java/org/sonar/server/plugins/PluginDeployer.java +++ b/sonar-server/src/main/java/org/sonar/server/plugins/PluginDeployer.java @@ -286,7 +286,7 @@ public final class PluginDeployer implements ServerComponent { try { URLClassLoader pluginClassLoader = URLClassLoader.newInstance(new URL[] { tempFile.toURI().toURL() }, getClass().getClassLoader()); Plugin pluginInstance = (Plugin) pluginClassLoader.loadClass(mainClass).newInstance(); - plugin.setKey(PluginKeyUtils.getPluginKey(pluginInstance.getKey())); + plugin.setKey(PluginKeyUtils.sanitize(pluginInstance.getKey())); plugin.setDescription(pluginInstance.getDescription()); plugin.setName(pluginInstance.getName()); |