mirror of
https://github.com/Athou/commafeed.git
synced 2026-10-26 15:08:51 +00:00
prevent Host header injection attacks
This commit is contained in:
@@ -41,6 +41,11 @@ public class CommaFeedApplication {
|
||||
ImageProxyUrl.generateKey();
|
||||
}
|
||||
|
||||
if (config.passwordRecoveryEnabled() && config.passwordRecoveryPublicBaseUrl().isEmpty()) {
|
||||
throw new IllegalStateException(
|
||||
"password recovery is enabled but no public base url is set");
|
||||
}
|
||||
|
||||
feedRefreshEngine.start();
|
||||
taskScheduler.start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user