Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118768 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 35047 invoked from network); 6 Oct 2022 13:45:00 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Oct 2022 13:45:00 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A8BD31804BC for ; Thu, 6 Oct 2022 06:44:59 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 6 Oct 2022 06:44:58 -0700 (PDT) Received: by mail-ej1-f50.google.com with SMTP id 13so4717956ejn.3 for ; Thu, 06 Oct 2022 06:44:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=bzxo1OskZD2S+2+Qeo3uiVPd4CrFr6WQqga7V47Uvlo=; b=SEpWqw4ChniNe1qinKzcIV5i8QID3EPoGP071GFXHYub0EzrsMBKnStSDsA8lIsh5O FN2T62jewxU96Wz9sQODMR+W0xCK3wTGHFGTVoilo6bh8QWQOmeVdPdcK8saUsOZRBGn CNtEkc7gXX5kBxWguGxqkDSzZVBizes21B4A/mKiJDZy2lmPWfRiDZJDWRxmz+iYN44n J8+RRi9UYoA+GUtYUExZ9nlDxiWyyhwL+y/sXTCU9qEGiGR7MJIyde6EocTlEugnWFye KnvAv50J6LVvgK3J2WarVX3o94KLLWAwx1eeXSSSxqwREmUkcRsirpahun4UTMI/VT4B jskA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bzxo1OskZD2S+2+Qeo3uiVPd4CrFr6WQqga7V47Uvlo=; b=IKVs7IxF+RglJesgF9ROMh3EYBZbvc0137Ohr6YlJ6hBlbtDJGiAIMeu86lhb6KqtT Mp6TwbRRgAJLOV/AosiggwFsm80DGsQUO4u7LiFB+KlZSJ2oHPZpJLNeMxVXztn6xlCN yiPMTWFjjzQO7dbekmVEaobk15M2GucKw9VVRny2TdmVrQuT2WqIL/PLH/gNDcGX50S8 R+xTF/06pSMzNpqKywKI3M3FBlNPbOoJyk//GevyS+1fNq4YJ1Uuv0EmgbCLo+wGt6dO vSdSXBuTgDgeNxvSM82HpXSfm9KW9P8LTzwfPpQXLWSzZtGiLAmNFLV1hFBGpVsEAhyp dxOg== X-Gm-Message-State: ACrzQf38nFfOHL9NuUyiKKg3r/k2klcqOu6GG1+4aYp2XHisp2Pt1Qxa tNAMaP3jKE28PYlxGABV6inehZaTmu8= X-Google-Smtp-Source: AMsMyM44dk6cDxs9omnvnyBg5n26F3AVVwtXFQ7+eb0yo1nyX0smnsqKR0jiJhAXjYljxIAHbZCXQA== X-Received: by 2002:a17:907:320c:b0:741:1e55:7a69 with SMTP id xg12-20020a170907320c00b007411e557a69mr4050855ejb.740.1665063897622; Thu, 06 Oct 2022 06:44:57 -0700 (PDT) Received: from smtpclient.apple ([89.249.45.14]) by smtp.gmail.com with ESMTPSA id k11-20020a17090632cb00b007030c97ae62sm10358077ejk.191.2022.10.06.06.44.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Oct 2022 06:44:56 -0700 (PDT) Message-ID: Content-Type: multipart/alternative; boundary="Apple-Mail=_EA0EEE05-1086-44AA-9A38-BD4DEA08E27E" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Date: Thu, 6 Oct 2022 15:44:55 +0200 In-Reply-To: <73b9c782-bcdf-7520-ea96-b2a265a933e2@gmail.com> Cc: internals@lists.php.net To: Rowan Tommins References: <0cfb9a7b-1168-42ef-ae1a-bdc72210de43@app.fastmail.com> <73b9c782-bcdf-7520-ea96-b2a265a933e2@gmail.com> X-Mailer: Apple Mail (2.3696.120.41.1.1) Subject: Re: [PHP-DEV] Sanitize filters From: claude.pache@gmail.com (Claude Pache) --Apple-Mail=_EA0EEE05-1086-44AA-9A38-BD4DEA08E27E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Le 6 oct. 2022 =C3=A0 10:19, Rowan Tommins a = =C3=A9crit : >=20 > You described FILTER_VALIDATE_EMAIL as "notorious for being next to = useless"; that gives us two possibilities: >=20 > a) A new function will be just as useless, because it will be based on = the same implementation > b) There is a better implementation out there, which we should start = using in ext/filter right now >=20 > My gut feel is that (a) is true, and there is no point considering = what a new function would be called, because we don't know how to = implement it. Hi, While it may be difficult to validate an email according to some = IETF=E2=80=99s RFC, the HTML standard has pragmatically adopted a = pattern (used to validate `` fields) that is both = readable and suitable for most practical purposes. See: https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address = =E2=80=94Claude= --Apple-Mail=_EA0EEE05-1086-44AA-9A38-BD4DEA08E27E--