Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94146 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12028 invoked from network); 20 Jun 2016 08:52:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jun 2016 08:52:23 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.44 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.44 mail-wm0-f44.google.com Received: from [74.125.82.44] ([74.125.82.44:36455] helo=mail-wm0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0F/82-25084-6CEA7675 for ; Mon, 20 Jun 2016 04:52:23 -0400 Received: by mail-wm0-f44.google.com with SMTP id f126so59722491wma.1 for ; Mon, 20 Jun 2016 01:52:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=MGddv8847gH4K7/G5poAYYwW8eZKW6fjZ01q6BS2PEE=; b=VkW193CnuBfQMYU5yKV/PeQ80c7ScB/uMR6F9unEH5knvJWrNb3+1yaTJ3HtvnkLKx S49KwFzBq28YisEqrJDCvC2HYuSyxvP1y5P1k4p/J1guWZEaSg5g3CKkZVEHNwcjeDvS PtlsgY8bxuMwh531czzMkrk9remMrCTz5YJwW+o6MFnWxNzh8v6sUcKAkybXAxAkiLeu D3uvRimPX5/kSO+W4SSVTMjVYCidtZA0ajW51cGv/sxVnTwtn+eHdnZswywCeoAP7g0V jDsF8mrCyXck3RB7iAj7X5fzqS9bZcc8u1WwoFJ4ViLHekI2VCfG7HkNF3DVyTqWVQMb NZ2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=MGddv8847gH4K7/G5poAYYwW8eZKW6fjZ01q6BS2PEE=; b=Sn8T5um6n9rQAd9NrxIxO6g2EeDdxGqxC1aGgKMfgfdT5ZqF/wFYVmoaWvKbe5vKjX PouwlvJ3Bo9RlgF3RvD0W2C2MbPiunsv5NYpcRm0UuQ18XVJD/p9W0WjoFlvPfiRd4zK zfD+chjLRkV1ucC+pKGE8TgdtCrKoOjuXiIL9OSg49tLFBU0Os4e2tySZl/CorOwuxYQ AxEZihj6CYteLz2Wf9vX/jjfigURnQt3frqBu4Wqe3Kl9IxSloNc3p8j4DH2Ot31DZBL dMDj5f4smjp5J2mlkpFDTFqCYqMwY1mIHOBF3Z/kSYenH7b+jxtN0MUCid8PYSMtSOSF cNQQ== X-Gm-Message-State: ALyK8tJklheXAgljVh1wzbOIixLZs+T1VhVBcQCN5B46W+L2LkovziAomZMOCEk7An7Jww== X-Received: by 10.28.107.23 with SMTP id g23mr10545662wmc.101.1466412739954; Mon, 20 Jun 2016 01:52:19 -0700 (PDT) Received: from [192.168.0.98] ([93.188.182.58]) by smtp.gmail.com with ESMTPSA id bc9sm39156514wjc.45.2016.06.20.01.52.19 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 20 Jun 2016 01:52:19 -0700 (PDT) To: internals@lists.php.net References: <20160617202344.2868F1A80C02@dd1730.kasserver.com> <57665E36.60302@lsces.co.uk> <5766D311.6030503@lsces.co.uk> Message-ID: Date: Mon, 20 Jun 2016 09:50:27 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] New escaped output operator From: rowan.collins@gmail.com (Rowan Collins) On 20/06/2016 04:22, Михаил Востриков wrote: > And it can really improve security, not in 90% but about 99.9999% > cases. I think you are rather overstating how much of a "special edge case" it is to echo a variable into other contexts like URLs, or JS. It doesn't need to be anything fancy, just an innocent-looking snippet like this:
There are three different escape mechanism needed there; if there is a shorthand for one, do you think it will be more likely or less that people will get the other two right? Regards, -- Rowan Collins [IMSoP]