mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +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 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");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user