Skip to content

Conversation

@kolesar-andras
Copy link

Do not add leading slash to path if host is not set or empty (see also #14).

@rolebi
Copy link
Contributor

rolebi commented Jan 15, 2016

Be careful, empty returns true for "0". Having an url of the format http://example.com#0 must be handled for example.

@pcfreak30
Copy link
Contributor

@kolesar-andras see #14 .

@blaaat
Copy link

blaaat commented Jul 16, 2018

http_build_url('https://www.google.com', [ 'query' => 'test=1', ], HTTP_URL_JOIN_QUERY);

Shouldn't this add the / to path even if it's empty?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants