Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94140 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91300 invoked from network); 20 Jun 2016 03:22:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jun 2016 03:22:51 -0000 Authentication-Results: pb1.pair.com header.from=michael.vostrikov@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=michael.vostrikov@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) X-PHP-List-Original-Sender: michael.vostrikov@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-qk0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:34815] helo=mail-qk0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 35/00-25084-A8167675 for ; Sun, 19 Jun 2016 23:22:51 -0400 Received: by mail-qk0-f170.google.com with SMTP id t127so24808442qkf.1 for ; Sun, 19 Jun 2016 20:22:50 -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=ZB1Bq6uL82LX0cULV9XlT3nUeztrF/DsA4Nc8nzewKw=; b=by/Kd6ITuD4JCs/2oijopkvk3l+GRpp9Uvlgu7021kRqIhQ+QPuTSNsJduHWPn6xMD eWDywEbqEIwkXkDYJnVG5QagjO4/9KMB+QtLI627bLg4cjuA1GumAItoJVgzBOJ2hhxY oR6x78zYnoKV5rgxUDxvArnWVKmQhmpcPlMuKQJCIx6oCkDNTr4gbwUVyV+ijMGjghBC nQrjo0wN17TqvAdEbwjh2wOSQVQhVNIfhWy4L+x1QNG5h11HX/g9e88TFUgLfDAz1JVw squtbeaPMNwJMzlfrsP64n4R6s7GZ9jY238YL9qGi64kA/FHSwzYKChBw05TvDEjUGfJ 4FeQ== 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=ZB1Bq6uL82LX0cULV9XlT3nUeztrF/DsA4Nc8nzewKw=; b=e5BRjqzON8Yk71nZ/NS0MSU/+E5RywLlEFxMfhpPVqJRInXFrBOq17C3jkPbm3JFKA sJFH8ZAkxGmoeuucUAWCXlRnnOyvS/FcyP0twedMiFDIGZvCz7zPH8WBoONmWDw8c5gT NcQYGejgKaz8ZAY7mwSlgs2SCMSyDojb1GGEHop0kwmh5OkwhTyY7rPBJ9ytXl6rw9rE mYZcP6zZHNQImq9GHS1DcdLnMcN7XUYlJuDmcUVsil9orgfieBuUjyGe89YR9L5s/gNB hDELo7kl/g+4F9YKCXhkthQV78BwDU6NUNss2tcq45jOCDQe9nbGJoPYGM6wHDYTkg6o EJdw== X-Gm-Message-State: ALyK8tKxYfYmnZNGVdO9y+BcJRuz7FRnwl2dulXR1AiY7zLOxkG3nDg/JmqErCEx0f33Lj9Ff3U82fMiQrwsDw== X-Received: by 10.55.165.67 with SMTP id o64mr19210566qke.51.1466392968223; Sun, 19 Jun 2016 20:22:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.53.71 with HTTP; Sun, 19 Jun 2016 20:22:47 -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 08:22:47 +0500 Message-ID: To: Walter Parker Cc: Scott Arciszewski , Lester Caine , PHP Internals Content-Type: multipart/alternative; boundary=001a114f9f7af8dfa60535ad3759 Subject: Re: [PHP-DEV] New escaped output operator From: michael.vostrikov@gmail.com (=?UTF-8?B?0JzQuNGF0LDQuNC7INCS0L7RgdGC0YDQuNC60L7Qsg==?=) --001a114f9f7af8dfa60535ad3759 Content-Type: text/plain; charset=UTF-8 > "Use ': > >> >> > where getting it 90% correct is worse that not doing anything at all. >> > Things like this will cause people to be blindsided when the uncaught >> escapes >> > cause the next major security problem. >> >> Why do you think so? What real problems can happen if there will be a >> short operator for htmlspecialchars()? >> >> What could happen is this getting sold/documented as a general purpose > security feature: > "Use ' outputting HTML that was stored in a DB." What it solves is a subset, > which is escaping characters stored in a data that have special meanings to > HTML. My concern is that the remain security issues might get overlooked or > ignored because ' htmlspecialchars, UTF-8 and certain language-specific characters (non > English). There were also issues with quotes in the past. > > > Walter > --001a114f9f7af8dfa60535ad3759--