http_build_url icon indicating copy to clipboard operation
http_build_url copied to clipboard

URLs with trailing slashes lose all their a's when joined

Open 27pchrisl opened this issue 5 years ago • 0 comments

Example:

http_build_url(
  "http://site.testing.com/apreview/testing/a/09-20a13/pa0a4/?code=asdfghjkl",
  array('path' => 'image/15.jpg'),
  HTTP_URL_JOIN_PATH | HTTP_URL_STRIP_FRAGMENT | HTTP_URL_STRIP_QUERY
);

Results in:

'http://site.testing.com/preview/testing//09-2013/p04/image/15.jpg'

27pchrisl avatar Nov 15 '20 12:11 27pchrisl