Merge branch 'MDL-65479' of git://github.com/stronk7/moodle

This commit is contained in:
Andrew Nicols 2019-05-09 15:03:54 +08:00
commit 5ecdf55a51

View File

@ -279,7 +279,7 @@ function split_url( $url, $decode=FALSE)
// Host name from RFC1035. Technically, must start with a letter.
// Relax that restriction to better parse URL structure, then
// leave host name validation to application.
$xhost_name = '([a-zA-Z\d-.%]+)';
$xhost_name = '([a-zA-Z\d\-.%]+)';
// Authority from RFC3986. Skip IP future.
$xhost = '(' . $xhost_name . '|' . $xipv4 . '|' . $xipv6 . ')';