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: Lars Ingebrigtsen
Subject: Re: master ce63f91025: Add textsec functions for verifying email addresses
Date: Thu, 20 Jan 2022 13:46:24 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

> The problem is that the answer to that question depends on the
> following text.  E.g., if RIGHT-TO-LEFT OVERRIDE is followed by R2L
> characters, they will not be affected.

Yes.  But it's certainly suspicious to have such dangling control
characters in a string, which is what we're wondering about.

> We could try appending some representative text to the string being
> tested, of course.  For example, append a fixed string like this:
>
>    a1א:!
>
> and see if the function returns non-nil position that points to one of
> those characters; if so, consider the original string "unsafe".
>
> Would that be good enough for textsec purposes?

Sounds good to me.  It should probably be baked into its own utility
function, so that other people that wonder about strings they have
doesn't have to know anything about these things.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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