Skip to content

Commit

Permalink
Correctly handle the continue on blacklistLoop
Browse files Browse the repository at this point in the history
  • Loading branch information
serivesmejia committed Oct 28, 2024
1 parent dc6c8fb commit 0bdb818
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,11 @@ class PluginClassLoader(
*/
fun loadClassStrict(name: String): Class<*> {
if(!pluginContextProvider().hasSuperAccess) {
blacklistLoop@
for (blacklistedPackage in dynamicLoadingPackageBlacklist) {
for(whiteListedPackage in dynamicLoadingPackageWhitelist) {
// If the class is whitelisted, skip the blacklist check
if(name.contains(whiteListedPackage)) continue
if(name.contains(whiteListedPackage)) continue@blacklistLoop
}

if (name.contains(blacklistedPackage)) {
Expand Down

0 comments on commit 0bdb818

Please sign in to comment.