Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71181 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12437 invoked from network); 16 Jan 2014 12:18:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jan 2014 12:18:40 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.51 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.219.51 mail-oa0-f51.google.com Received: from [209.85.219.51] ([209.85.219.51:49856] helo=mail-oa0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0B/14-24763-F1EC7D25 for ; Thu, 16 Jan 2014 07:18:39 -0500 Received: by mail-oa0-f51.google.com with SMTP id h16so2258624oag.38 for ; Thu, 16 Jan 2014 04:18:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=u0siTKDXwHUOmsbXgDDkNbX+TplLusD1ByeyNPEwTKE=; b=mAttNtm7dkPbjqpQik1wOCFBFaO4WWevWFS5Nnj0+NeJsaRtG3mMzIbEksYaNihkAf wMcNRhYAlWcakL5YcOkn6N/iDGHSF9sTz6KOGWDHTDK7MvVaXRuYYfFEjjNNXHxeJ45F uUeC3fJBQptC5Il6G9ZCBRZbzzs6oZ+vn4oiqUdx+BLYQWmhHzYInNRLhzXQAKCh93OJ 2gUPtLToyPFH/khno2BP8n41V3FgNeXM/1cv8DInbxV5GDpr6TU5IQLoLdqKI7twLzo3 GFlyPDgsKhh8KYCFx4/34/x8fxp5z7JDFVGB9ovlEcbZ0hVzO+fOGIN55gq1P2CZ0DmN FooQ== MIME-Version: 1.0 X-Received: by 10.60.93.229 with SMTP id cx5mr158646oeb.82.1389874716552; Thu, 16 Jan 2014 04:18:36 -0800 (PST) Received: by 10.182.54.112 with HTTP; Thu, 16 Jan 2014 04:18:36 -0800 (PST) In-Reply-To: References: Date: Thu, 16 Jan 2014 13:18:36 +0100 Message-ID: To: Yasuo Ohgaki Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7b33d3cec3a2a604f0156cf5 Subject: Re: [PHP-DEV] [RFC] Multibyte char handling From: nikita.ppv@gmail.com (Nikita Popov) --047d7b33d3cec3a2a604f0156cf5 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Jan 16, 2014 at 12:50 AM, Yasuo Ohgaki wrote: > Hi all, > > addslashes() could be vulnerable via char encoding based attacks. > It is needed to decide what counter measure we adopt. > This is RFC for this issue. > > https://wiki.php.net/multibyte_char_handling > > Please comment. > Thank you. > Please do *not* add encoding parameters to our existing string functions - we have an mb extension and mb functionality should go there. Don't mix the things, it will only lead to a lot of confusion. Right now it's obvious which functions handle encoding how, no need to break that. Nikita --047d7b33d3cec3a2a604f0156cf5--