From 51660272bf7186851535276ac33de754fd6ec45a Mon Sep 17 00:00:00 2001 From: Björn Mattsson Date: Fri, 8 Dec 2023 18:02:36 +0100 Subject: Added check for emty XML-tags. Breaks some SAML implementations --- metadata/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'metadata/Makefile') diff --git a/metadata/Makefile b/metadata/Makefile index 3637b561..06e2eae7 100644 --- a/metadata/Makefile +++ b/metadata/Makefile @@ -54,6 +54,7 @@ testALlevel: testBadStrings: @echo "Check for bad strings in metadata" @for x in `find $(SRCDIRS) -name \*.xml`; do grep -E 'ServiceName xml:lang="[^"]*"/>' $$x | sed 's/^/ /' ; done | grep . && exit 1 || exit 0 + @for x in $(SRCDIRS); do grep -n '/>' $$x/*.xml | grep -v '<.* .*/>' ; done | grep . && exit 1 || exit 0 testRegistrationAuthority: @echo "Check for registrationAuthority="http://www.swamid.se/" in EntityDescriptor/Extensions" -- cgit v1.2.3