mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 06:53:09 +00:00
allow empty feedback page url
This commit is contained in:
@@ -81,7 +81,7 @@ public class FeedbackRestRepository extends DSpaceRestRepository<FeedbackRest, I
|
|||||||
|
|
||||||
String pageUrl = feedbackRest.getPage();
|
String pageUrl = feedbackRest.getPage();
|
||||||
String urlPrefix = configurationService.getProperty("dspace.ui.url");
|
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");
|
throw new DSpaceBadRequestException("unexpected page url was submitted");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user