http_build_url icon indicating copy to clipboard operation
http_build_url copied to clipboard

Maybe a bug - http_build_url([ 'user' => 'abc', 'pass' => 123]);

Open KTP95 opened this issue 8 years ago • 2 comments

Hello, I'm sorry, I don't know if this is a real bug, and if the original function (of pecl) has same output, i never work with it

Anyway:

http_build_url([ 'user' => 'abc', 'pass' => 123]);
abc:123@/

I'm not sure if @/ are correct for output... Can something check in original pecl version ?

KTP95 avatar Feb 07 '17 08:02 KTP95

Do you ad the test case for this related issue?

Thanks.

peter279k avatar Dec 13 '18 13:12 peter279k

Technically I believe the original PECL implementation would attempt to detect the scheme, host, and path of the current request and use those values as defaults to always return a URL with those values present, but I personally object to that behaviour and the implementation in Winter CMS returns abc:123@ for the provided input.

LukeTowers avatar Jul 27 '21 02:07 LukeTowers