create relation with holder- and contact-data, and search for contact emailAddress + relation mark #136

Merged
hsh-michaelhoennig merged 12 commits from feature/create-relation-with-holder-and-contact-data into master 2024-12-13 14:09:03 +01:00
Showing only changes of commit 0ebaec6908 - Show all commits

View File

@ -35,6 +35,7 @@ public interface HsOfficeContactRbacRepository extends Repository<HsOfficeContac
} }
static String emailRegEx(@NotNull String emailAddress) { static String emailRegEx(@NotNull String emailAddress) {
// TODO.impl: find more secure solution, maybe we substitute a placeholder with the whole expression?
if (emailAddress.contains("'") || emailAddress.endsWith("\\") ) { if (emailAddress.contains("'") || emailAddress.endsWith("\\") ) {
throw new ValidationException( throw new ValidationException(
"emailAddress contains invalid characters: " + emailAddress); "emailAddress contains invalid characters: " + emailAddress);