Skip to content

Conversation

arshidkv12
Copy link

Fix parse_url() to avoid treating a colon followed by digits inside the path as a port number.

Before:

$url = '//www.example.com/ddd:65333/';
var_export(parse_url($url));
array (
  'host' => 'www.example.com',
  'port' => 65333,
  'path' => '/ddd:65333/',
)

After

array (
  'host' => 'www.example.com',
  'path' => '/ddd:65333/',
)

@arshidkv12 arshidkv12 requested a review from bukka as a code owner August 20, 2025 09:11
@arshidkv12 arshidkv12 closed this by deleting the head repository Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant