allow empty feedback page url

This commit is contained in:
Sascha Szott
2024-01-26 10:40:48 +01:00
committed by GitHub
parent 771f37a1fa
commit c4cc56a429

View File

@@ -81,7 +81,7 @@ public class FeedbackRestRepository extends DSpaceRestRepository<FeedbackRest, I
String pageUrl = feedbackRest.getPage();
String urlPrefix = configurationService.getProperty("dspace.ui.url");
if (! StringUtils.startsWith(pageUrl, urlPrefix)) {
if (StringUtils.isNotBlank(pageUrl) && ! StringUtils.startsWith(pageUrl, urlPrefix)) {
throw new DSpaceBadRequestException("unexpected page url was submitted");
}