Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127243 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 961571A00BC for ; Tue, 29 Apr 2025 18:55:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1745952773; bh=S6U6BUoc4Obq8Eybqt32I2tPzUuoaqHHDyA8BeAvxDk=; h=Date:Subject:To:References:From:In-Reply-To:From; b=Blrui3JXJYt5P7c67dN+39Vv+rZMB8PBvlRHcWLZ2vgnx6NoWcFH93mqI3Nueww4O 8A4uN4m39b4N5Vh1qVzF+fwOmYtnocwhp6qmupPabUeux6L8nEGgWSTF0hGN3IkQ55 +aM+VNZZcO4xzy1JH1Yywi0ZPNCDbm9brAJSsAGn9hsP1td1uHwcA/9aDFcj/L0EbM H7pV9P8BtZHWSdZBuWyc6/1gRI2TaaE6G4VXiRAtPdL0hsHnQgYq5R1f9j8MqW9Wb7 hd3UVZxB6S9pTjD6kDai9/tyuxp/hvzuuIX3mglUNgwHSqIlB93t+HlzDBcbns+G29 0xdxmBa6Q5n6w== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CDCBC180087 for ; Tue, 29 Apr 2025 18:52:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-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,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 29 Apr 2025 18:52:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1745952905; bh=xPA2tPpdDSkrgff+SBNf0VUYITCR+S4A59MIzqoR1qw=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=kxJM3sLGpv5+dgv1JJeE7dZPFzv9RF+0Bxac0qn81pV2saY2lsybbJ+Lv6PkmAkdV DziS+7WKvp3P+t443NfEnETQUBI/h/ZZT6X0lNI4S8hdM4udoN4J3WtT8XnZFwkftX A0MEVzSUYsFIanrrxrrhCI5BFy490zcM76t7DppFp3r+zYlewoDG0c2YFaXDDHay4T nG9D6hfPetT3MrGIx+U0rm/jN3MgjwkhRtgVAjhA8yzeD4p6nupz+lRkIYKPwIWJrH qmLk8R0lkS9X/mb+k54tKaGoie2VjXhbGWD6r3w4dWP1CaC9qT2fzqb7Qi9ACjV5Ef 5TJyCLZU9pFig== Message-ID: <809590c3-fd64-4861-8804-1c9eea62a4a8@bastelstu.be> Date: Tue, 29 Apr 2025 20:55:04 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Subject: Re: [PHP-DEV] [RFC] [Discussion] Add WHATWG compliant URL parsing API To: ignace nyamagana butera , =?UTF-8?B?TcOhdMOpIEtvY3Npcw==?= , PHP Internals List References: <8df04e01-deac-404b-beb7-cd982423db63@bastelstu.be> <33427cd03035ef084245c44290b56a55@bastelstu.be> <0aa1eefc3941bdea0092e935074daa58@bastelstu.be> <76d96ea8a78c6025128c0a4b01c94c0a@bastelstu.be> <07a8a580-4f0c-4b2f-8a67-b91dacfe99bf@bastelstu.be> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi On 4/29/25 10:54, ignace nyamagana butera wrote: > I have one last question while reviewing my polyfill implementation. Is it > worth it adding a SensitiveParameter attribute on the argument of the > following methods ? > > - Uri\Rfc3986\Uri::withUserInfo > - Uri\WhatWg\Url::withPassword > > I'm fine with any answer ? Does it warrant a paragraph in the RFC ? That I > do not know but I feel the question may be raised ? Good catch. Since they may throw an exception for malformed inputs, they should have the attribute. Especially since folks might try to use special characters in passwords, which might need encoding. No paragraph in the RFC needed, but the attribute should be added to the “stub”. Best regards Tim Düsterhus