Additional risk check

This commit is contained in:
Kelvin 2024-05-20 22:38:18 +02:00
parent 819e81b7a6
commit cf8bd9ce3a

View file

@ -82,6 +82,9 @@ class SourcePluginConfig(
};
fun isLowRiskUpdate(oldScript: String, newConfig: SourcePluginConfig, newScript: String): Boolean{
//New allow header access
if(!allowAllHttpHeaderAccess && newConfig.allowAllHttpHeaderAccess)
return false;
//All urls should already be allowed
for(url in newConfig.allowUrls) {