|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-02-04 21:04 UTC] iliaa@php.net
[2014-06-13 08:10 UTC] salathe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 15:00:01 2025 UTC |
Description: ------------ Trailing '\r' or '\n' in URL causes _ to be appended to either the path or to the host. Reproduce code: --------------- <? print_r(parse_url("http://test.com/\n")); ?> Expected result: ---------------- Array ( [scheme] => http [host] => test.com [path] => / ) Actual result: -------------- Array ( [scheme] => http [host] => test.com [path] => /_ )