Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118770 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 57630 invoked from network); 6 Oct 2022 20:05:30 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Oct 2022 20:05:30 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D77821804BC for ; Thu, 6 Oct 2022 13:05:29 -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,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.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 13:05:29 -0700 (PDT) Received: by mail-wm1-f50.google.com with SMTP id r3-20020a05600c35c300b003b4b5f6c6bdso1544611wmq.2 for ; Thu, 06 Oct 2022 13:05:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=EZT69E6mxsi7Ej+Z7MAiYeA565qKUrg46V8vRm5brZw=; b=jcG9/EXb5aqBm+OZocobhIwS5EYliRoIFbtn/4TLH12uhddaWj/XVd760hCo1RwP+Z DL6ioMB6BN1YWT7neiC7+weP4GpIt+hhSgLW8rGkOn2gH8J9FH/qIQyBDzC7Qn1nJ/Zv IVd3P8vJxVZwfX4Tu9oDHleZpuEte7OZ0KFI57o+8LTylOb3cR7lads1138kvBLCubDs B+k0dJOhgIFA1ikYxfyP8/YRXxBGtV0f7uYyTaTSk4g3UoZbcw3idT9Uj5BF1zKMYBQn 9gaiZnv74Qp9sbxAroF15w9NuNO7BMkzO0hmw0ls/mYJTprTfFWyTaBhcHNCT6PT4TdM 78Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EZT69E6mxsi7Ej+Z7MAiYeA565qKUrg46V8vRm5brZw=; b=5aazmSOcQ5GH37MNk9jIghMH1e09XSF/De1WjXsTHyrHrxKha0vNf62JPy5/DLGfxl nv1xYfNLB4VXIZ65hs7b+cKgbRHB5woBBFQL2J4gRADwgTsTn4O7VWOFm54zq11lh7AA LC/RiSYpcjGSSNW7eIKKOA7fIVZLQS3Acb7lkPtZmdkQSvRvNE9pJgz4DBhI+qBpjLAx wPaUT7N/CcDNNc6/MJ+5PV+A5kIEGTuJ0HFQErBxwHxt10pwZyVamukfp0VxOdvYyirW cFS8/A0ukENOZNp+HdXZYIU1HwV+cnei6aT6jxjLuEjdQ0mpkZNCIHx4ChXGbzGtydrd 3ykw== X-Gm-Message-State: ACrzQf1o9v+H4WLjIYPOOEXzl3e2gp+7cy1ASpL78zuH5je4Vf78CbiV exckk9cN3YpXvxjV/vRblGvm4WuGpEY= X-Google-Smtp-Source: AMsMyM6XBJGmDvzRnawxBGe8rsgW55YwwvYOyIhc9J8U6g/rTKVak9Ij4K8Hv/5EVhBP/baHWpIvcg== X-Received: by 2002:a05:600c:3b12:b0:3b4:a6ea:1399 with SMTP id m18-20020a05600c3b1200b003b4a6ea1399mr7946052wms.49.1665086728118; Thu, 06 Oct 2022 13:05:28 -0700 (PDT) Received: from [192.168.0.22] (cpc104104-brig22-2-0-cust548.3-3.cable.virginm.net. [82.10.58.37]) by smtp.googlemail.com with ESMTPSA id f62-20020a1c3841000000b003b31fc77407sm6588940wma.30.2022.10.06.13.05.27 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Oct 2022 13:05:27 -0700 (PDT) Message-ID: Date: Thu, 6 Oct 2022 21:05:26 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Content-Language: en-GB To: internals@lists.php.net References: <0cfb9a7b-1168-42ef-ae1a-bdc72210de43@app.fastmail.com> <73b9c782-bcdf-7520-ea96-b2a265a933e2@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Sanitize filters From: rowan.collins@gmail.com (Rowan Tommins) On 06/10/2022 14:44, Claude Pache wrote: > > While it may be difficult to validate an email according to some > IETF’s 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 Well, it would be a more clearly documented source than the current implementation, although the spec admits it's "wilfully" not following e-mail standards. I'd be happy to see it committed, maybe for PHP 8.3. I note that it doesn't support internationalized addresses in their Unicode form, though, so it won't do for FILTER_FLAG_EMAIL_UNICODE. Regards, -- Rowan Tommins [IMSoP]