We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f2a5d3 commit b3a17f4Copy full SHA for b3a17f4
grails-app/taglib/au/org/ala/biocache/hubs/OccurrenceTagLib.groovy
@@ -941,4 +941,17 @@ class OccurrenceTagLib {
941
942
sanitizedHtml
943
}
944
+
945
+ /**
946
+ * Remove any text containing the apiKey value from the UI
947
+ *
948
+ * @attr message REQUIRED
949
+ */
950
+ def stripApiKey = { attrs, body ->
951
+ String message = attrs.message
952
+ String output = message.replaceAll(/apiKey=[a-z0-9_\-]*/, "")
953
+ log.warn "input = ${message}"
954
+ log.warn "output = ${output}"
955
+ out << output
956
+ }
957
0 commit comments