Skip to content

Commit c95c075

Browse files
committed
quote paths
1 parent 5f69059 commit c95c075

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/framework/PluginFramework.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,11 +330,12 @@ private String getClassName(JarEntry jarEntry) {
330330
File file = new File(pluginDirectory.getAbsolutePath(), filePath);
331331
try {
332332
if (!file.getCanonicalPath().startsWith(pluginDirectory.getCanonicalPath() + File.separator)) {
333-
LOGGER.log(Level.WARNING, "canonical path for jar entry {0} leads outside the origin", filePath);
333+
LOGGER.log(Level.WARNING, "canonical path for jar entry ''{0}'' leads outside the origin",
334+
filePath);
334335
return null;
335336
}
336337
} catch (IOException e) {
337-
LOGGER.log(Level.WARNING, "failed to get canonical path for {0}", file);
338+
LOGGER.log(Level.WARNING, "failed to get canonical path for ''{0}''", file);
338339
return null;
339340
}
340341

@@ -372,12 +373,12 @@ private String getClassName(JarEntry jarEntry) {
372373
*/
373374
public final void reload() {
374375
if (pluginDirectory == null || !pluginDirectory.isDirectory() || !pluginDirectory.canRead()) {
375-
LOGGER.log(Level.WARNING, "Plugin directory not found or not readable: {0}. "
376+
LOGGER.log(Level.WARNING, "Plugin directory ''{0}'' not found or not readable: "
376377
+ "All requests allowed.", pluginDirectory);
377378
return;
378379
}
379380

380-
LOGGER.log(Level.INFO, "Plugins are being reloaded from {0}", pluginDirectory.getAbsolutePath());
381+
LOGGER.log(Level.INFO, "Plugins are being reloaded from ''{0}''", pluginDirectory.getAbsolutePath());
381382

382383
// trashing out the old instance of the loader enables us
383384
// to reload the stack at runtime

0 commit comments

Comments
 (0)