[exim-cvs] Docs: another note on quoting data for lookups

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] Docs: another note on quoting data for lookups
Gitweb: https://git.exim.org/exim.git/commitdiff/66ce3fc9291d13fe8a7d4099942b9101aef1c38c
Commit:     66ce3fc9291d13fe8a7d4099942b9101aef1c38c
Parent:     9c254e6f5079a0df3e3df8cfaa0e917ac421498b
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Fri Jul 21 10:35:19 2023 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Fri Jul 21 10:42:52 2023 +0100


    Docs: another note on quoting data for lookups
---
 doc/doc-docbook/spec.xfpt | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)


diff --git a/doc/doc-docbook/spec.xfpt b/doc/doc-docbook/spec.xfpt
index 9eb0b6b56..7a28d8107 100644
--- a/doc/doc-docbook/spec.xfpt
+++ b/doc/doc-docbook/spec.xfpt
@@ -7378,10 +7378,15 @@ of the following form is provided:
.code
${quote_<lookup-type>:<string>}
.endd
-For example, the safest way to write the NIS+ query is
+For example, the way to write the NIS+ query is
.code
[name="${quote_nisplus:$local_part}"]
.endd
+.cindex "tainted data" "in lookups"
+.new
+&*All*& tainted data used in a quoery-style lookup must be quoted
+using a mechanism appropriate for the lookup type.
+.wen
See chapter &<<CHAPexpand>>& for full coverage of string expansions. The quote
operator can be used for all lookup types, but has no effect for single-key
lookups, since no quoting is ever needed in their key strings.

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-cvs.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-cvs-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/