Merge branch 'jn/maint-http-error-message'
[gitweb.git] / t / lib-gpg.sh
index 28463fb6f426e6d6a74ab2092510c838a1aa95a8..05824fa8e4d18252f74c51531d6504039986c078 100755 (executable)
@@ -24,3 +24,11 @@ else
                ;;
        esac
 fi
+
+sanitize_pgp() {
+       perl -ne '
+               /^-----END PGP/ and $in_pgp = 0;
+               print unless $in_pgp;
+               /^-----BEGIN PGP/ and $in_pgp = 1;
+       '
+}