Test-Account666 / PlugManX

Plugin manager for Bukkit servers.
https://www.spigotmc.org/resources/plugman-improved.88135/
MIT License
103 stars 43 forks source link

Prevent loading of files that are not directly located in the plugins folder #5

Closed KurtThiemann closed 2 years ago

KurtThiemann commented 2 years ago

The previous fix did not fully resolve the issue because it still allowed loading plugins from subdirectories of the plugins folder (e.g. plugins/something/something/test.jar). Additionally, it didn't fix the issue at all if the server is running on Windows, since Java on Windows will also accept backslashes () as directory separator.

Test-Account666 commented 2 years ago

Hey!

Thanks for pointing this out!

I only tested this on my machine (which is linux) and didn't think about the subdirectories...