emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master ce63f91025: Add textsec functions for verifying email address


From: Eli Zaretskii
Subject: Re: master ce63f91025: Add textsec functions for verifying email addresses
Date: Thu, 20 Jan 2022 12:20:35 +0200

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: luangruo@yahoo.com,  emacs-devel@gnu.org
> Date: Thu, 20 Jan 2022 10:49:00 +0100
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Why do you think the former one is suspicious?  The override there
> > doesn't affect any character, because there's nothing after it.
> 
> Because strings aren't used in isolation.  In this case we're checking
> the name part of an email address headers, and:
> 
> (insert "Lars Ingebrigtsen\N{RIGHT-TO-LEFT OVERRIDE}" "larsi@gnus.org")
> 
> Boom.

Then you must pass the entire concatenated string to the function.  Or
call it on buffer text after inserting the string there.  This
function must see the characters affected by the bidi controls, to
tell whether the control do any harm.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]