Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94143 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97889 invoked from network); 20 Jun 2016 04:06:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jun 2016 04:06:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=michael.vostrikov@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=michael.vostrikov@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.182 as permitted sender) X-PHP-List-Original-Sender: michael.vostrikov@gmail.com X-Host-Fingerprint: 209.85.220.182 mail-qk0-f182.google.com Received: from [209.85.220.182] ([209.85.220.182:34846] helo=mail-qk0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CA/11-25084-EAB67675 for ; Mon, 20 Jun 2016 00:06:08 -0400 Received: by mail-qk0-f182.google.com with SMTP id c73so147282174qkg.2 for ; Sun, 19 Jun 2016 21:06:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=RvTl7Q1ty1VWzl+LbcjDrMkUbmUqnnTf9b9tlSR2N4w=; b=VFVxogVKfja6xJhe1Anx7Gu8i0NvlSM6gWmq2cYPg2+q8NZ5Rz9vHlTxNjiwXbbYni kbPw4xU+YJZP7Uh0QTXfTfanBFleOdkHzVJyAV5aOckVekg7l0u81OPC3tvrOWExdwwh wbgiWqKcfRgPpV4Vtgm1/JU4EvOIv2sRmv/hsPqXNNmar4uzMKUx1MTvc/uew48hkE6j 17x+xtMbMcbWIYdxRMXhrmmpM1FmmLlTMLbOH5VVeKAHvZJvFijDE3OVJTswLenNsn/d PYUQRv5bLd8+Agv2xWPS8jybpBlj88ZAcv9bRhBUEQPwVNurGDZpwTbjtrgC2PnSr3Rl GbCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=RvTl7Q1ty1VWzl+LbcjDrMkUbmUqnnTf9b9tlSR2N4w=; b=bvHUhKVNUdU/WYe730vauSU5SP1AxXfdeHF2kRksKOzjEfzyizV3Ey0+IKISwCuznh bOEUsfOt5MmKtkIgP+LuXjBOdyqe3mf4nQnOtemWyWXA3MnlgoD9eZBV8CaCRzJQ9FX+ pTePqKpkjbwzeeGdVKiZRHWHBK9N1gKrloQToPKRMK087sy7oLJ6oYwXuxvy93+8Qarv Ra7NbPAZ1uAACJLlmTbnL9lqpCJVGMq8PfZJbx6/9KOm44WvopjWZq+5T+QdYAwFtIQg ENAUoBQ4IOHJXHRYwbkRt0brWMbIc8XVh+QfX/Lz/bgn1lQn+YuP7Lnmo/2nA1BzMP0H nB6A== X-Gm-Message-State: ALyK8tL9FiBBq5emQ0ACBpOY8h4JZ1aCRxuTgF2yO8Az/UOBpn3rdesgRIY4wLdsfyslZJI84EzY1HubZnFTQg== X-Received: by 10.55.176.130 with SMTP id z124mr11705364qke.55.1466395564077; Sun, 19 Jun 2016 21:06:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.53.71 with HTTP; Sun, 19 Jun 2016 21:06:03 -0700 (PDT) In-Reply-To: References: <20160617202344.2868F1A80C02@dd1730.kasserver.com> <57665E36.60302@lsces.co.uk> <5766D311.6030503@lsces.co.uk> Date: Mon, 20 Jun 2016 09:06:03 +0500 Message-ID: To: Davey Shafik Cc: Walter Parker , Scott Arciszewski , Lester Caine , PHP Internals Content-Type: multipart/alternative; boundary=94eb2c06fb2eb2825b0535add298 Subject: Re: [PHP-DEV] New escaped output operator From: michael.vostrikov@gmail.com (=?UTF-8?B?0JzQuNGF0LDQuNC7INCS0L7RgdGC0YDQuNC60L7Qsg==?=) --94eb2c06fb2eb2825b0535add298 Content-Type: text/plain; charset=UTF-8 Davey, could you give some example? As I see in this discussion, all specific use cases are associated with output to JS or URL context. But this is not a majority of use cases. Also, html escaping should not be used here, json_encode() or urlencode() should be used instead. 2016-06-20 8:39 GMT+05:00 Davey Shafik : > On Sun, Jun 19, 2016 at 8:30 PM, Walter Parker wrote: > >> Good, then we do agree, as what I said was what I DID NOT want to see in >> the documentation. >> >> This should be documented as shortcut for > ?>. It should be further pointed out that while this will be useful in >> catching many XSS and other HTML issues, it will not catch all of them, so >> care and attention to proper data hygiene is still required. >> >> >> Walter > > > There will never be a way to make this operator useful to a majority of > users or use cases; similar ideas have been discussed many times in the > past. > > If we get annotations then you might be able to hook something in from > userland transparently that understands your specific context and > application. This would be much more feasible IMO. > > - Davey > --94eb2c06fb2eb2825b0535add298--